redirect 301 / http://www.newdomain.com/
in my .htaccess file and this will do it. However, will this do it for the entire site? Also can anyone point me to a link that shows what search engines see when you do this?
Thanks
RedirectPermanent / [newurl.com...]
Now, that would send everyone to the front page of your new location. If they had a specific page of the old site bookmarked, it might be somewhat annoying to be sent to the front page of the new location instead.
If the site at the new URL is an exact duplicate of the old one, you might want to put up a page-by-page redirect .htaccess at the old site, so everyone would be sent where they wanted to go...
RedirectPermanent /oldpage1.htm [newurl.com...]
RedirectPermanent /oldpage2.htm [newurl.com...]
Etc., etc.
also see:
[webmasterworld.com...]
[webmasterworld.com...]
rewriteEngine on
rewriteBase /
rewriteCond %{HTTP_HOST} olddomain.com$ # only required if on same webspace & dir
rewriteRule ^(.+) http://www.newdomain.co.uk/$1 [L,R=301]
If your site doesn't get lots of incoming hits except on the main page, or if the structure has changed use the method suggested by mivox above.