Html Redirect!

Discussion in 'HTML & Website Design' started by Adam Fletcher, Dec 5, 2006.

  1. #1
    Hiya everyone,

    I need a HTML code that will automatically redirect somone when they visit a page.

    I CANNOT use htaccess file to do this it has to be an HTML code.

    Can anyone help

    Thanks
     
    Adam Fletcher, Dec 5, 2006 IP
  2. Austars

    Austars Active Member

    Messages:
    1,437
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    95
    #2
    billstclair.com/html-redirect.html
     
    Austars, Dec 5, 2006 IP
  3. BenjArriola

    BenjArriola Peon

    Messages:
    175
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #3
    BenjArriola, Dec 5, 2006 IP
  4. rspadi

    rspadi Guest

    Messages:
    60
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    43
    #4
    Hi,

    use something like:

    <META HTTP-EQUIV="Refresh" CONTENT="3; URL=someURL">

    replace values for Content (3 means a redirect is done after 3 seconds) and URL


    If you use php:

    <?php

    header( 'Location: http://www.yoursite.com/new_page.html' );

    ?>

    Hope that helps.

    Robert.
     
    rspadi, Dec 5, 2006 IP