Thursday, June 29, 2017
Home » Domains & Hosting » Redirect Old Domain to New Domain using .htaccess
Redirect Old Domain to New Domain using .htaccess
301 Redirect a Domain

Redirect Old Domain to New Domain using .htaccess

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
RewriteEngine on
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:

  1. Select “A redirection to a URL”,
  2. In the “Redirect to:” field type in the address of the new domain you want to forward traffic to,
  3. Select “A permanent redirection for this source”
  4. Press the “OK” button – you are done!
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: ...

Review Overview

User Rating: 4.5 ( 1 votes)
0

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>