I know how to redirect through a 301 and htacess on apache linux server to a different domain. However, Im having trouble figuring out how to redirect my blog to not only a different domain but ALSO a different folder. I want my blog to redirect from the root to a blog directory on the new domain. I want to go from http://www.domain1.com/blogpost1/ to http://www.domain2.com/blog/blogpost1/ Anyone know how to do that? Thanks.
Just post the following code inside the "blogpost1" folder of domain1.com: Redirect 301 / http://www.domain2.com/blog/blogpost1/ Code (markup):
I think you can do this by modifying your domain setting as well, like the MX record and Zone file -- I am not 100 % sure but I think you can.
also, check out this article it might give you an idea. http://php.about.com/od/learnphp/ht/phpredirection.htm
Thanks for the help guys, but no longer needed. I decided to not do this and just have a get a new domain for a new site and keep the old one on its current one.