09 January 2008

Transition to new blogger

After some tedious and some not-quite-as-tedious work, I've transitioned my blog back to Blogspot hosting with the new dynamic page serving. In order to make links to my old pages (and google links) work correctly, I added this to my .htaccess file to change any links on my old blog to pages on my new blog, except to the googlebot (so that hopefully it won't lose records of where my pages are):
RewriteCond %{REQUEST_URI} ^/blog/labels/
RewriteCond %{HTTP_USER_AGENT} !^.*Googlebot.* [NC]
RewriteRule ^blog/labels/(.*).html$ http://reference-man.blogspot.com/search/label/$1 [R,L]

RewriteCond %{REQUEST_URI} ^/blog
RewriteCond %{HTTP_USER_AGENT} !^.*Googlebot.* [NC]
RewriteRule ^blog/(.*)$ http://reference-man.blogspot.com/$1 [R,L]

0 comments:

Post a Comment