what status code to use for redirect, but still index

Discussion in 'Google' started by fsmedia, Jun 16, 2007.

  1. #1
    What status code should I redirect a link with if I still want search engines to index the page?

    Such that I create /exit/type1 and it goes to X.com, but I want search engines to index the page of /exit/type1

    I tried a Redirect 302, but that wasn't working...

    any suggestions?
     
    fsmedia, Jun 16, 2007 IP
  2. tfbpa

    tfbpa The....Alive

    Messages:
    896
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    120
    #2
    Not sure, but I think the only one that works is a Meta Refresh.

    But I'm not sure if you want to go that way...
     
    tfbpa, Jun 16, 2007 IP
  3. fsmedia

    fsmedia Prominent Member

    Messages:
    5,163
    Likes Received:
    262
    Best Answers:
    0
    Trophy Points:
    390
    #3
    Thanks, but it needs to be an immediate redirect, not a met-refresh.

    I'm doing it via .htaccess, I'm using Redirect 301 and Redirect 302 for a lot of links, but I would love to figure something out where I can index those links and still have them redirect.

    I thought 302 would do it since that is temporary redirect...but it hasn't been working...
     
    fsmedia, Jun 16, 2007 IP
  4. MartiCode

    MartiCode Peon

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Redirect 301 is for URL that have been moved permanently (and they are handled gracefully by SE).

    Either 301 or 302 do not normally come with any content (not sure what the official specs say about that), only the HTTP header, so there's nothing to index. And even if there was some HTML served, a SE would likely disregard it as no user could see it (and what's the point of indexing stuff people cannot view ?)
     
    MartiCode, Jun 17, 2007 IP
  5. ahelpinghand

    ahelpinghand Guest

    Best Answers:
    0
    #5
    I completely agree, mostly neither 301 not 302 will work.
     
    ahelpinghand, Jun 17, 2007 IP
  6. fsmedia

    fsmedia Prominent Member

    Messages:
    5,163
    Likes Received:
    262
    Best Answers:
    0
    Trophy Points:
    390
    #6
    ok....so what WILL work? heh, I don't really care what doesn't work, I just want to know what DOES work.
     
    fsmedia, Jun 18, 2007 IP