Parallel Paths
Posted in Product Reviews, Web/Tech, Weblogs on June 26th, 2005 by Chip GibbonsRichard Silverstein and I have been following parallel paths, at least as far as blogging goes.
We both started out at Blogger, moved to Typepad and then on to WordPress, where we have suffered “the slings and arrows of outrageous fortune,” as Hamlet would say. The big challenge comes from converting URLs so that as many links can be preserved as possible.
I originally saw something that he wrote about Apache mod_rewrite and in that post he offered to send the file of RewriteRules to anybody who was facing the same challenge.
This began a dialogue back and forth and he, having always been a few months, weeks, or days ahead of me, has offered valuable assistance each step of the way.
We both have suffered the temporary loss of our .htaccess file upon our first attempts to update it. My problem was been compounded many times over by the fact that I was unable to view hidden files on my DreamHost server.
On Friday, when I used the WordPress editor to update the .htaccess file, it blew up and I got a 500 server error when I tried to view my site explaining what had happened. It was impossible to get into my site at all.
The tech rep, in respose to my e-mail, very promptly put the .htaccess file back, but deleted all the rules first, believing that all the rules were the problem, instead of just the last one. So I was able to get into my site up but none of the permalinks worked.
So I asked him if he had a backup, which he did. He promptly renamed it htaccess.backup and put it in my root directly, suggesting that in the future I acccess the .htaccess file and edit it myself.
Only problem is I couldn’t see any hidden files on the server.
After going back and forth with a few e-mails, he suggested that I download CuteFTP, an ftp client that he said had much better hidden file support than IE. I downloaded and installed the program and even after reading all their documentation about how to view hidden files and choosing the settings they suggested, I still could not see any hidden files.
I related my frustrations to Richard and asked him what ftp client he used. He suggested FileZilla, a free, open-source program.
So I download the program. The download was fast and the install a breeze. The interface is so intuitive and easy to understand I had it connected to my ftp site very quickly. I set it to view hidden files and it couldn’t see any hidden files either.
DreamHost tech support just kept suggesting that I must be doing something wrong because they could see the hidden files from their end. After several hours of this, it was late an I just sent them an e-mail asking them to restore the old .htaccess file for me, since they could see the files. That would make the permalinks work again and I could deal with the hidden files problem later.
I also suggested that since three ftp programs could not see any hidden files on the those, the problem was at their end, not mine.
I watched the DVD of Oscar Wilde’s “The Importance of Being Earnest“.
By the time the movie finished they still hadn’t restored the old .htaccess file. I was late so I went to bed hoping that by morning they would have gotten around to it.
But Noooooooooooooooooooo. When I got up, the permlinks still didn’t work. By this time I’m thinking DreamHost is a nightmare.
I logged into my ftp site using all three programs again. I did not change any of the settings from the night before. The results were very interesting.
Friday night:
MSIE could only see regular files, no hidden files.
CuteFTP: could only see regular files, no hidden files.
FileZilla: could only see regular files, no hidden files.
Saturday AM:
MSIE could only see regular files, no hidden files.
CuteFTP could see local files only, no host files at all (hidden or otherwise)
FileZilla: could see regular and hidden files on BOTH my local drive and the DreamHost server.
Hmmmm….
Since DreamHost tech support still had not replaced the .htaccess file with the backup that had the rules in it, I quickly took the opportunity to restore the backup and every thing started working fine on my site again.
I later deleted the connection in CuteFTP and after I set it up again, it could see hidden files on my local drive, but still no hidden files on the host.
Today, I’ve been very successful in writing some additional Rewrite Rules and have had no problems with the .htaccess file at all. Each rule that I’ve added has worked the first time.
I think the first time I added a rule it blew up either because I didn’t put the [L] flag at the end of the line or because I change a command early in the file that skipped to a particular rule. Maybe I skipped to the wrong one. At any rate, I would have though that .htaccess would have just ignored any rule it couldn’t make sense of rather than bringing my entire site down.
Now, categories in the old format will link directly to the right categories on my new site as will monthly indexes. Indivdual posts, unless they have a name that’s no more than 14 characters and with no underscore (a TypePad convention), will be thrown into the monthly archive for the post.
All traffic that is going to the old TypePad domain name http://www.thebinarycircumstance.com/(permalink) is currently being automatically rerouted to the home page of this site. I’m still trying to figure out if I can somehow parse the incoming HTTP_REFERER (sic) variable to at least direct some links into the correct month or category archive. I think there must be a way to do that.
TypePad truncated the names of posts at 15 characters, so there’s no way for me direct permalinks longer than 14 characters to individual posts because WordPress uses the whole post name in their permalinks. Most names are much longer than 14 characters and I have no way of knowing what characters to add without doing it manually for each post.
I’ll pass.
So progress has been made and I owe Richard a lot of credit for helping me get through this.
In addition, FileZilla looks like a great progam. I like it’s ease of installation and use. It’s very easy to drag and drop files between my local drive and the host, hidden or not.
Another useful tool I found along this journey is this Apache mod_rewrite cheat sheet. You can print it out on one page and it’s a great quick reference guide.