Related to my previous post (moving web site to the new domain), here’s how you can forward all visitors to your new site using .htaccess (for Apache web server):
RewriteEngine on
RewriteCond %{HTTP_HOST} ^olddomain.com
RewriteRule ^(.*)$ http://newdomain.com/$1 [R=permanent,L]
This will forward all visitors to your new domain, targeting exactly the same document as requested on the olddomain. This redirect will have permanent redirection status so search engines should hopefully cope with it too.
Using Java? Speed-up bug fixing and improve customer satisfaction using LogDigger to create detailed error reports and notifications for your web application