herghost Posted March 1, 2011 Share Posted March 1, 2011 Hi all, I am trying to redirect a wp blog to a new site, including links Basically say my link is like myblog.com/cat/post/ and I want it to redirect to myblog1.com/cat/post/ at the moment, I have this Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^blog1\.co.uk [NC,or] RewriteCond %{HTTP_HOST} ^www.blog1\.co.uk [NC,or] RewriteRule ^(.*)$ http://www.blog2.com/$1 [R=permanent,L] However when this link is clicked, the redirect takes me to the index of blog2, how do I keep the info after? eg the /cat/post? The filesystem is identical for both sites Cheers Quote Link to comment https://forums.phpfreaks.com/topic/229288-htaccess-pulling-my-hair-out/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.