Moved blog to new directory
Posted: Mon Jun 16, 2008 10:54 pm
I used to have my blog in the root of my webhosting. I had to move the blog out of the root so I could use mod_rewrite for other programs, so i moved it to /blog/.
I tried to 301 redirect and 410 gone most of my pages since I basically restarted my blog from scratch only recreating a few posts from my old blog but the 301s and the 410s did not work.
I first tried to accomplish this from the root .htaccess file but it didn't give the correct header.
I used the following in my .htaccess.
The pages that i want redirected either produce 200 found or 404 errors. The first line produces 200 and the second line produces a 404.
My root .htaccess file contains...
... and my serendipity .htaccess file contains a default serendipity .htaccess.
Any ideas how I can straighten out my redirection mess?
I tried to 301 redirect and 410 gone most of my pages since I basically restarted my blog from scratch only recreating a few posts from my old blog but the 301s and the 410s did not work.
I first tried to accomplish this from the root .htaccess file but it didn't give the correct header.
I used the following in my .htaccess.
Code: Select all
Redirect 410 /index.php?/archives/2005/12/C2.html
Redirect 301 http://www.roffle.us/index.php?/archives/69-Google-Web-Server-GWS2.1.html http://roffle.us/blog/archives/2-Google-Web-Server-GWS2.1.htmlMy root .htaccess file contains...
Code: Select all
DirectoryIndex index.php index.html index.htm
Redirect 302 /index.php http://roffle.us/blog/Any ideas how I can straighten out my redirection mess?