If you are hosted on a linux server, simply create a text file in notepad (not word or wordpad) and name it htaccess.txt.
In the file, place the following code:
redirect 301 / http://www.yournewsite.com
the first / signifies the root directory of your current site. This will redirect all pages of your site to the exact same file on your new site.
For example:
www.youroldsite.com/testing/test.html
would redirect to:
www.yournewsite.com/testing/test.html
Upload the file to your root html directory, and then change the name to .htaccess (It might disappear once you change the name, it might not). Then visit your old site. You should be immediately taken to your new site.
301 redirection brings users instantly to your new site. Like this. Visit http://www.neorunner.com/golden_girls/
It will immediately take you to the new home for the girls at mygoldengirls.net.
This is also the most search engine friendly redirect. Most web hosts allow .htaccess files. If yours doesn't, you could contact them and ask them to do a 301 redirect on your root directory. Some free hosts don't allow access to .htaccess files.
I hope this helps.
Last edited by neorunner; 11-26-2005 at 02:32 PM..
|