Totally Zenned
- Join Date:
- Apr 2010
- Posts:
- 900
- Plugin Contributions:
- 0
Use 301 redirects to forward old site to new
Hi!
I'm writing for 2 reasons. First is to share something I think is really cool. Second is to see if anyone can add to it.
Ok, what I figured out is how to put a 301 redirect into my htaccess file that would redirect the entire site to a new domain. Simply open the htaccess file and, at the top, put in the following single line:
redirect 301 / http://www.NEWsite.com/
Just like that you are done! This will create search engine friendly URL redirects. If you have to move domains and you want to keep your google rankings, this is the way to go!
This is what will happen:
https://www.OLDsite.com/category_I_want_to_keep
301 redirected to
https://www.NEWsite.com/category_I_want_to_keep
https://www.OLDsite.com/productURL_I_want_to_keep
301 redirected to
https://www.NEWsite.com/productURL_I_want_to_keep
Obviously your sites have to be structured the same. I use Ceon URI and SitemapXML. The only thing that changed was my domain name, so this worked beautifully.
Hope this helps!
Mike