An Underscore Solution
Hopefully this will be the last post on this topic for a while (I know it’s not the most interesting thing to discuss), but I’ve finally made up my mind on the subject. After doing some more in-depth research on the dash/underscore debate over the last week, I’ve decided that the benefits to URI-dashes do outweigh my stubbornness and personal preference for the underscore. So I’m making the switch. As of now, all future URI’s on this site will be dash-friendly. In addition, all past URI’s have been updated, and the old underscored-URI will be 301’d (Permanently Redirected) to it’s updated location.
All this means is that all hard-coded links to pages on this site with an underscore in the URI will continue to work, and always will. But the 301 redirection should update all search engine records, so Google and others will get a fresh load of easily-searchable URI’s to replace their current stock.
All of this is controlled by a single WordPress plugin I wrote this evening. I figure it might help people transitioning from Movable Type to WordPress, or anybody who uses WP with the underscore in their URI’s wanting to switch to the dash, so it is available for download.
The plugin does two things. First, when activated, it immediately applies a filter to the start of every WP page load. This filter checks to see if the current instance is a Page or Post, and if so, checks to see if the requested Page/Post is valid. If not, it examines the database for the Page/Post with the same title, just replacing any underscores with dashes. If the result of this query is valid, it spits out a 301 Permanent Redirection header, and redirects the browser to the updated URI. Second, the plugin includes an options page that includes a simple button to globally search-and-replace any Page/Post slug underscores with dashes. So all you have to do is load the plugin, activate it, then click the button on the options page, and you’ll be all set.
As to my partiality to the underscore, perhaps I will learn to love the dash in due time. I still prefer the looks of the underscore, but I’m able to admit when a preference goes against more logical evidence. So Google, I shake my fist and add one to your tally. You’ve won this one. Just don’t let it go to your head.
Post and Author Info.
Published May 26, 2005 by:
Commenting is currently off for this post.
So far there are 8 comments.
I find it funny and frustrating that the underscore doesn’t work the same as a dash does, as like you I also prefer the look of the underscore. To me, it seems to be ‘out of the road’ when you read the URL, as its a base character; where as the dash seems to be in your face when reading the URL.
If I see any movement at work since I’ve moved back to dashes, I’ll be sure to drop another comment here to let you know as well Steve.
Side note: did you get my email about /swtich/ at all?
Al.
May 26th, 2005
Victory!!!!! heh, seriously though it would be great to see a write up of your research, with sources cited and all.
May 27th, 2005
If you throw a bunch of logical searches at Google, you’ll get all of the research you want about the matter. Turns out, it isn’t an unknown problem; just one that non SEO whores such as Steve and myself have stumbled across.
Al.
May 28th, 2005
:-) i gotta say i like the underscore better myself too as far as the way it looks, but steve, nice job at backing down despite your stubbornness in favor of what you found to be more beneficial. i’m amazed.
June 2nd, 2005
I agree, the underscore is more presentable with my standards. I like seeing articles like this, I find it interesting and unique. Keep up the great work.
June 2nd, 2005