WTB - Help Regarding 301 Redirect

Discussion in 'Google' started by Ankit Rawat, Mar 21, 2011.

  1. #1
    let me tell you first what exactly i want to do,

    I have olddomain.com and a newdomain.com

    I have more then 1000+ pages on both websites

    Now, I want: HomePage + Few Other Pages of olddomain.com to stay at olddomain.com (ie... olddomain.com, olddomain.com/1.htm, olddomain.com/2.htm, olddomain.com/3.htm) and rest of the pages to be 301 to newdomain.com!!

    I think, I was quite clear ... I knw how to 301 all links ... but duno how to 301 all links without effecting few links!!

    please suggest
     
    Ankit Rawat, Mar 21, 2011 IP
  2. RumpledElf

    RumpledElf Well-Known Member

    Messages:
    1,054
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    100
    #2
    With regular expressions in your htaccess file.

    Use with care though - I did this exact thing recently, the (rather high) traffic that was going to the old domain basically crashed to zero as Google took the old site right out of the SERPs within about 3 days of adding the redirect. I don't think I'm even going to make adsense payout threshold this month, its the 22nd and I've only got $108 :(
     
    RumpledElf, Mar 21, 2011 IP
  3. mchrest

    mchrest Active Member

    Messages:
    465
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    90
    #3
    I had issues when i did it tread with care!
     
    mchrest, Mar 21, 2011 IP
  4. Abhik

    Abhik ..:: The ONE ::..

    Messages:
    11,337
    Likes Received:
    606
    Best Answers:
    0
    Trophy Points:
    410
    Digital Goods:
    2
    #4
    RumpledElf is right, RegEx in htaccess file can do it.
    But, since you want to keep some of your pages in old domain, you need to add some exception rules.
     
    Abhik, Mar 21, 2011 IP
  5. saqib889

    saqib889 Peon

    Messages:
    1,291
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #5
    If you need help you can contact me personally, I might help you.
     
    saqib889, Mar 21, 2011 IP
  6. Ankit Rawat

    Ankit Rawat Peon

    Messages:
    104
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Can someone tel me the code ??
     
    Ankit Rawat, Mar 21, 2011 IP