Permanently moving one domain to another is a huge task. Creating a single redirect for each page on your site is unrealistic and would suck the very life from your body. Well, relax – there’s an easier way, using htaccess. This will redirect all of your pages to their respective new pages on your new domain.
<IfModule mod_rewrite.c> Options +FollowSymLinks RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !^OLDDOMAIN\.com$ [NC] RewriteRule ^(.*)$ http://www.NEWDOMAIN.com/$1 [R=301,L] </IfModule>
Be sure to replace “OLDDOMAIN” with your own old domain, and “NEWDOMAIN” with your new domain.