301 Redirect a Domain on a Linux Server
Create a .htaccess file in the root directory of your old website OR edit the htaccess that is already there (after safely making a backup of the existing one) and add the following lines exactly as they are shown while substituting www.yournewdomain.com with your new domain address:Options +FollowSymLinks
RewriteRule (.*) http://www.yournewdomain.com/$1 [R=301,L]:
301 Redirect a Domain on a Windows Server
Access the “Internet Services Manager” on your Windows Server and right-click on the site that you want to redirect traffic from then select “Properties” and then “Home Directory”.
Now you should see the “Default Web Site Properties” window along with the “Home Directory” tab front and center. Now the settings:
- Select “A redirection to a URL”,
- In the “Redirect to:” field type in the address of the new domain you want to forward traffic to,
- Select “A permanent redirection for this source”
- Press the “OK” button – you are done!