very quick php question, help plz

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • qwe
    Confirmed User
    • Jul 2003
    • 2109

    #1

    very quick php question, help plz

    lets say I have one.php in my root directory on the server, and I activate it from the browser as http://site.com/one.php then I want that to redirect to http://site.com/two.html ... what code do I put in one.php file to redirect to two.html page ?
  • Fucksakes
    Shit... Fuck! What the Hell?
    • Dec 2003
    • 7567

    #2
    Originally posted by qwe
    lets say I have one.php in my root directory on the server, and I activate it from the browser as http://site.com/one.php then I want that to redirect to http://site.com/two.html ... what code do I put in one.php file to redirect to two.html page ?
    PHP Code:
    <?php
    header("HTTP/1.1 301 Moved Permanently");
    header("Location: url here");
    ?>

    Comment

    • qwe
      Confirmed User
      • Jul 2003
      • 2109

      #3
      Originally posted by Fucksakes
      PHP Code:
      <?php
      header("HTTP/1.1 301 Moved Permanently");
      header("Location: url here");
      ?>
      thx bro

      Comment

      Working...