Archive for February 12th, 2010

Updated URL

Friday, February 12th, 2010

I changed the URL of my blog!

It all started with mattclare.ca/wordpress because that’s the software I chose to use to use back when I wanted to try this blogging thing out in 2004.  Shortly after that I regretted the choice (or lack there of) of the url mattclare.ca/wordpress.  A much better choice would have been mattclare.ca/blog

It took a lot of work to get the pretty URLs working, plus there’s the issue of visitors to my blog and search engines still having the old URLs.  Because of this I was hesitant to change the URL, but today after a lot of research and modelling, I finally switched the URL.  I had been testing redirecting /blog to /wordpress since I re-did the main page of my website, but  today I took the big plunge.

The most important thing was to setup the redirect via the Apache web server I use in a way that preserved my Google ranking.  The trick (according to Google) is to send the 301 header with the redirect.

The “httpd.conf” config line was

RewriteRule /wordpress(.*) /blog$1 [R=301,NC,L]

Please let me know if you see anything that doesn’t work anymore!