How to create a 301 redirect for an add on domain
Posted: September 21st, 2011 | Author: ciprian | Filed under: Uncategorized | No Comments »What is a .htaccess file?
Whenever some requests a file from your server, the apache server checks for the .htaccess file and can make necessary alterations to the request.
When you move your site permanently, you should use one of these .htaccess files in order to point your addon domain to the consolidated domain.
Setting up .htaccess is very easy. Just login to your addon domain and simply locate the .htaccess file. If you want to redirect all the trafic from the domain, you need to add this line:
redirect 301 / http://www.consolidateddomain.com
And that’s it
You can use any text editor in order to make this change.
If you just want to redirect a specific page, you should use redirect 301 /specific_page.html http://www.consolidateddomain.com/specific_page.html
Enjoy your automatic redirect