How do I Redirect multiple a pages?

Discussion in 'Programming' started by ЄxDeus™, Aug 1, 2008.

Thread Status:
Not open for further replies.
  1. #1
    I want to have 1 site that will load one site then I want it to load another site in the same window about 5 seconds after.

    So user joins my site and he looks at one site then 5 seconds later the page reloads and the user is now looking at a different site

    Any one able to help me? .
     
    ЄxDeus™, Aug 1, 2008 IP
  2. Trusted Writer

    Trusted Writer Banned

    Messages:
    1,370
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    160
    #2
    The only way I can help you is saying that such thing can be done via Javascript but I'm leaving now to abound in details.

    The script is posted in one of the Javascript Cut & paste websites if you want to try finding it, otherwise I will return later and if you haven't found this or another answer I will surely help :)
     
    Trusted Writer, Aug 1, 2008 IP
  3. ЄxDeus™

    ЄxDeus™ Well-Known Member

    Messages:
    2,860
    Likes Received:
    214
    Best Answers:
    1
    Trophy Points:
    155
    #3
    all the ones seem to require the user to click i want it to do it auto:(
     
    ЄxDeus™, Aug 1, 2008 IP
  4. jpinheiro

    jpinheiro Peon

    Messages:
    1,211
    Likes Received:
    15
    Best Answers:
    1
    Trophy Points:
    0
    #4
    Place this in between <head> </head> tags

    <meta http-equiv="refresh" content="5; URL=urlhere">


    Example: <meta http-equiv="refresh" content="5; URL=http://websitenamehere.com/">

    This will make page reload to new after 5 seconds
     
    jpinheiro, Aug 1, 2008 IP
  5. jpinheiro

    jpinheiro Peon

    Messages:
    1,211
    Likes Received:
    15
    Best Answers:
    1
    Trophy Points:
    0
    #5
    Sorry you want in php... here you go just add this

    <?php
    header("refresh: 5; http://yourulr.com";
    ?>
     
    jpinheiro, Aug 1, 2008 IP
  6. ЄxDeus™

    ЄxDeus™ Well-Known Member

    Messages:
    2,860
    Likes Received:
    214
    Best Answers:
    1
    Trophy Points:
    155
    #6
    but that would only do one site how could i do a few?
     
    ЄxDeus™, Aug 1, 2008 IP
  7. jpinheiro

    jpinheiro Peon

    Messages:
    1,211
    Likes Received:
    15
    Best Answers:
    1
    Trophy Points:
    0
    #7
    you just add it to each site with the next url you want

    like this

    Site1:
    <?php
    header("refresh: 5; http://site2.com";
    ?>

    Site2:
    <?php
    header("refresh: 5; http://site3.com";
    ?>

    Site3:
    <?php
    header("refresh: 5; http://site4.com";
    ?>

    ect. ect..
     
    jpinheiro, Aug 1, 2008 IP
Thread Status:
Not open for further replies.