php redirect huh?

Discussion in 'Site & Server Administration' started by quicksilver101, Mar 12, 2008.

  1. #1
    <?php
    // redirection
    header("HTTP/1.1 301 Moved Permanently");
    header("Location: http://www.xxxxxx.com/");
    ?>

    Why does it do absolutely nothing? :(:(:(
     
    quicksilver101, Mar 12, 2008 IP
  2. Ladadadada

    Ladadadada Peon

    Messages:
    382
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try this:

    header('Location: http://www.example.com/', 301);
    PHP:
    It also might be handy to supply a short HTML page after the header with the URL of the final destination.
     
    Ladadadada, Mar 12, 2008 IP