302 redirects

Discussion in 'Search Engine Optimization' started by PokerForFree, Jan 11, 2007.

  1. #1
    Hey,

    I have a site which redirects the domain to the default language, if no language is chosen.

    http://www.pokerforfree.org -> http://www.pokerforfree.org/en/home/

    This happens in the php header function.

    Does this affect my site for SEO? I have checked this site http://www.instantposition.com/seotest.php, and it returned this error:
    It's easy to change, without a redirect I can just set default values for the variables. The question I have is: Should I?

    Thanks for the help,

    Giorgio
     
    PokerForFree, Jan 11, 2007 IP
  2. Cryogenius

    Cryogenius Peon

    Messages:
    1,280
    Likes Received:
    118
    Best Answers:
    0
    Trophy Points:
    0
    #2
    A 302 Temporary Redirect should be okay when used to redirect between pages on the same domain. If you were redirecting from another domain, then you'd want to change this to a 301 Permanent Redirect. Here's the code you would need:

    header('HTTP/1.1 301 Moved Permanently');
    header('Location: http://www.pokerforfree.org/en/home/');
    PHP:
    Tip: the second line should already exist, so simply search for it and then put the other line in front of it.

    Cryo.
     
    Cryogenius, Jan 16, 2007 IP