301 Redirects and Permalinks
-
Hey there,
My brother, whose blog I host on WP on my server recently got a new URL for his blog. Before it was just a subset of mine.
http://server.ericsbinaryworld.com/~dmesa/blog/
now it is
http://www.nothingtothetable.com
It did not move on the server – it’s still in the same directory. So I was trying to do a RewriteRule that would allow his old URLs to still work.
Here’s what I have:
# BEGIN WordPress
<IfModule mod_rewrite.c>
#next line added by eric
#Options +FollowSymLinksRewriteEngine On
#also added by eric
#RewriteRule http://server.ericsbinaryworld.com/~dmesa/blog/(.*) http://www.nothingtothetable.com/$1 [R=301]
#redirect 301 http://server.ericsbinaryworld.com/~dmesa/blog/(.*) http://www.nothingtothetable.com/$1RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#belongs there
RewriteRule . /index.php [L]
#added by eric for dan's old urls to work
#Options +FollowSymLinks#
#RewriteRule (.*) http://www.nothingtothetable.com/$1 [R=301]</IfModule>
# END WordPress
If I uncomment out any of those RewriteRules that aren’t for permalinks, the blog keeps working with the new URL, but none of those allow the old URLs to work.
I have looked through the WP forums and I’ve looked through the apache documentation, but I can’t figure it out.
Any help would greatly be appreciated.
Thanks!
The topic ‘301 Redirects and Permalinks’ is closed to new replies.