301 Redirect - Please help

Discussion in 'Google' started by loveuall, Jan 20, 2009.

  1. #1
    We are planning to move a 1000 pages pr3 website from one domain to another using 301 redirect so we don't loose page rank and rankings in Google and other search engines.

    URL structure will remain same like

    http://www.old-domain.com/innerpage1.html
    http://www.old-domain.com/innerpage2.html
    http://www.old-domain.com/innerpage3.html

    will move to

    http://www.new-domain.com/innerpage1.html
    http://www.new-domain.com/innerpage2.html
    http://www.new-domain.com/innerpage3.html

    Like so on for all 1000 pages,


    Now can anyone suggest what code do we need to put in .htaccess file at old-domain.com so redirect works properly and we don't loose rankings of inner pages too?

    Also other guidelines and imp. points to remember while moving?
     
    loveuall, Jan 20, 2009 IP
  2. rainborick

    rainborick Well-Known Member

    Messages:
    424
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    120
    #2
    Try this:
    
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^(www\.)?old-domain.com$
    RewriteRule ^(.*)$ http://www.new-domain.com/$1 [R=301,L]
    
    Code (markup):
    I'm not an expert at .htaccess, but I think this should work. Be sure to back up your original .htaccess before testing so you can fix it if I'm wrong. Also keep in mind that you're liable to experience some ranking fluctuations for a while when you make the change. Some people advice changing a few directories at a time, but that's beyond my experience and always seemed to me to be tricky to do well. Good luck!
     
    rainborick, Jan 20, 2009 IP
  3. FREE BET

    FREE BET Peon

    Messages:
    927
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #3
    ive found that no matter what, the ranking will in fact change if you do a 301, other factors like new domain age might influence...is it new or just a redirect to another domain that you have had for a while?
     
    FREE BET, Jan 20, 2009 IP
  4. miranon

    miranon Peon

    Messages:
    209
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You can put a php script on every old page that will do a 301 redirect.
     
    miranon, Jan 20, 2009 IP
  5. rehash

    rehash Well-Known Member

    Messages:
    1,502
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    150
    #5
    don't expect to keep pr and ranking
     
    rehash, Jan 20, 2009 IP
  6. Sphinks

    Sphinks Active Member

    Messages:
    1,102
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    78
    #6
    Sphinks, Jan 20, 2009 IP