Redirect Script Correct?

Discussion in 'Programming' started by theboss91, Jun 25, 2010.

  1. #1
    I recently switched my forum from forums.domainn to domain/forums
    And to compensate for the backlinks etc that the old location had I put this into the viewtopic of the old location:

    <?
    Header( "HTTP/1.1 301 Moved Permanently" );
    header("Location: http://www.parascientifica.com/forums/viewtopic.php?".$_SERVER['QUERY_STRING']);
    ?>

    It works for humans, but do bots get it?
     
    theboss91, Jun 25, 2010 IP
  2. infogle

    infogle Prominent Member

    Messages:
    2,732
    Likes Received:
    128
    Best Answers:
    1
    Trophy Points:
    300
    #2
    yes 301 redirects are perfect for getting search engine notified - always try ti use the 301 redirect

    Hope this helps...
     
    infogle, Jun 25, 2010 IP
  3. theboss91

    theboss91 Member

    Messages:
    58
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #3
    Ok thanks.
     
    theboss91, Jun 25, 2010 IP