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

301 Redirect

Discussion in 'Cloaking and Content Generators' started by thedarkest12, Sep 29, 2010.

  1. thedarkest12

    thedarkest12 Regular Member

    Joined:
    Nov 23, 2009
    Messages:
    475
    Likes Received:
    127
    Occupation:
    Digital Marketing
    Location:
    Manchester, UK
    Home Page:
    Hi all,

    Could someone let me know the 'most' effective method to quickly redirect ALL pages from one domain to a new domain (index page only).

    Thanks!!
     
  2. TheDaemon

    TheDaemon Newbie

    Joined:
    Sep 29, 2010
    Messages:
    14
    Likes Received:
    1
    in your .htaccess file in the root directory, make it this:

    Code:
    # This allows you to redirect your entire website to any other domain 
    Redirect 301 / (url goes here)
    
    or set up a missing.php in your .htaccess file and put in a header redirect in there to the new site.


     
  3. thedarkest12

    thedarkest12 Regular Member

    Joined:
    Nov 23, 2009
    Messages:
    475
    Likes Received:
    127
    Occupation:
    Digital Marketing
    Location:
    Manchester, UK
    Home Page:
    TheDaemon, thanks.

    So I had this code in here, is this too elaborate, or not going to redirect the link juice...

    .htaccess

    Code:
    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule (.*) http://www.mynewsite.com/$1 [R=301,L]
     
    • Thanks Thanks x 1
  4. TheDaemon

    TheDaemon Newbie

    Joined:
    Sep 29, 2010
    Messages:
    14
    Likes Received:
    1
    That looks fine to me.
     
  5. trungdeplao

    trungdeplao Junior Member

    Joined:
    Jun 30, 2010
    Messages:
    109
    Likes Received:
    33
    Sorry for my nood question, is the ranking of your site hurt after changing to this? how about the previous backlinks?
     
  6. anjila428

    anjila428 Newbie

    Joined:
    Sep 14, 2010
    Messages:
    1
    Likes Received:
    0
    please tell me the procedure to add .htaccess file in site.
     
  7. promosirupiah

    promosirupiah Junior Member

    Joined:
    Jul 11, 2010
    Messages:
    149
    Likes Received:
    33
    did you mean all pages on old domain exist in new domain or only simple redirect?
     
    Last edited: Oct 3, 2010
  8. TheDaemon

    TheDaemon Newbie

    Joined:
    Sep 29, 2010
    Messages:
    14
    Likes Received:
    1
    As long as you do 301s, you should be fine. I don't believe that Google lessens the backlink due to a proper 301 redirect. Mine will redirect to the root, thedarkest's redirect will preserve the file structure.

    You can add an .htaccess file by just adding a file named .htaccess file to your root directory. Depending on your server configuration, this should be sufficient.
     
  9. thedarkest12

    thedarkest12 Regular Member

    Joined:
    Nov 23, 2009
    Messages:
    475
    Likes Received:
    127
    Occupation:
    Digital Marketing
    Location:
    Manchester, UK
    Home Page:
    Great, thanks, this gives me a lot of confidence that the link juice is pumping now to the new site :D
     
  10. nenjak

    nenjak Junior Member

    Joined:
    Mar 29, 2010
    Messages:
    111
    Likes Received:
    38
    Gender:
    Male
    Occupation:
    This
    Location:
    Portland Oregon
    Is it possible to redirect to a sub domain and still keep the link juice??