The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

website forwarder

Discussion in 'General Discussion' started by Honzazi, Feb 14, 2008.

  1. Honzazi

    Honzazi Member

    Joined:
    Jan 13, 2007
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    Hiya,

    could you please tell me how I could do the "5seconds" forwarder?

    I'm basically moving my site to new domain name and I would like to have the message
    on the old one - the site will be redirect after 5seconds.

    Thank you very much! :)

    H.
     
  2. darren.nolan

    darren.nolan Well-Known Member

    Joined:
    Oct 4, 2007
    Messages:
    259
    Likes Received:
    0
    Trophy Points:
    16
    Using PHP

    Code:
    <?php
    header( 'refresh: 5; url=http://www.example.net' );
    echo '<h1>Please stand by for redirection to new website!</h1>';
    echo 'If you are not redirected in 5 seconds please <a href="http://www.example.net">Click here</a>';
    ?>
    
    Go for gold :)
     
Loading...

Share This Page