301 Redirect htaccess




Redirect a single page


Redirect 301 /oldpage.html http://www.yoursite.com/newpage.html Redirect 301 /oldpage2.html http://www.yoursite.com/folder/


Redirect an entire site


This way does it with links intact. That is www.oldsite.com/sub/view/normal.html will become www.newsite.com/some/view/normal.html. This is extremely helpful when you are just "moving" a site to a new domain. Place this on the OLD site:

Redirect 301 / http://newsite.com/
301 Redirect htaccess Dev2Tricks 5 of 5
Redirect a single page Redirect 301 /oldpage.html http://www.yoursite.com/newpage.html Redirect 301 /oldpage2.html http://www.yours...

Share this

Related Posts

Previous
Next Post »

Xolo Offer