In alt.html Net5 said:
We are thinking of changing where our web site is located.
on your old site setup a 301 redirection. (assuming apache) stick the
below in a .htaccess file[1] in your root.
RedirectPermanent /absolute/path/to/your/root
http://example.com/
your current host FAQ should tell you what the absolute path to your
root is. example.com being your new address.
on your new site remind everyone to update their bookmarks.
I've seen pages where there is a message that 'you will be forwared to
www.nnn.abc in 5 seconds. If not click here'.
very bad
don't use anything client side to redirect people, always do it server
side where it works, doesn't annoy search engines and the correct client
request redirect responses are sent.
if you don't want to do a 301 then just do a normal page telling people
about the change and display the new address, don't do any attempts at
redirection.
[1] a .htaccess file is a plain text file named as shown. if you create
the file with notepad save the file with quotes to prevent notepad from
adding a .txt extension i.e: ".htaccess"