1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

301 redirect from domain1 to domain2

Discussion in 'Search Engine Optimization (SEO)' started by seopeter, Sep 29, 2009.

  1. seopeter

    seopeter New Member

    Joined:
    Sep 25, 2009
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    0
    How do you make 301 redirect from domain1 to domain2 ?
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,283
    Likes Received:
    364
    Trophy Points:
    83
    Refer to the SEO FAQ at the top of this forum
     
  3. nlgordaz

    nlgordaz New Member

    Joined:
    Sep 29, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Tucson, AZ
    Home Page:
    There are several ways. To do it in the htaccess file, you'd want to use this:

    Options +FollowSymlinks
    RewriteEngine on
    rewritecond %{http_host} ^DOMAIN [nc]
    rewriterule ^(.*)$ DOMAIN/$1 [r=301,nc]

    Best,
    Noah -
     
  4. JhonWilliams

    JhonWilliams New Member

    Joined:
    Sep 25, 2009
    Messages:
    26
    Likes Received:
    1
    Trophy Points:
    0
    Home Page:
    Hi,
    Follow these steps to implement 301 redirect
    1. To create a .htaccess file, open notepad, name and save
    the file as .htaccess (there is no extension).

    2. If you already have a .htaccess file on your server,
    download it to your desktop for editing.

    3. Place this code in your .htaccess file:

    redirect 301 /old/old.htm http://www.you.com/new.htm

    4. If the .htaccess file already has lines of code in it,
    skip a line, then add the above code.

    5. Save the .htaccess file

    6. Upload this file to the root folder of your server.

    7. Test it by typing in the old address to the page you've
    changed. You should be immediately taken to the new
    location.
     

Share This Page