Redirecting page script or code?

Discussion in 'HTML & Website Design' started by Untitled, Nov 24, 2007.

  1. #1
    What script or code do you use to redirect from one page to another?

    Thank you. :)
     
    Untitled, Nov 24, 2007 IP
  2. zonzon

    zonzon Peon

    Messages:
    100
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    php:
    <?php
    header( 'Location: http://www.yoursite.com/new_page.html' ) ;
    ?>

    html:
    <META HTTP-EQUIV="Refresh"
    CONTENT="5; URL=html-redirect.html">

    The "5" means to wait 5 seconds before redirecting. The "html-redirect.html" after "url=" is the URL of the page to which to redirect.
     
    zonzon, Nov 24, 2007 IP
    Untitled likes this.