Results 1 to 3 of 3

Thread: Auto Forward Web Page

Hybrid View

  1. #1
    Join Date
    Jul 2005

    Auto Forward Web Page

    Hi all

    I need some assistance in finding some code. I have redesigned my companies website and placed all new folders in a folder named "v2", as in version 2.

    I have looked on the internet for some code to auto forward users from the original site index to the new site index under the v2 folder.

    Does anyone have a recommended solution?


  2. #2
    Join Date
    Feb 2005
    what about a .htaccess redirect?
    free music: comatronic

  3. #3
    Join Date
    Aug 2004
    Other options:

    PHP header() redirect:
    PHP Code:
    ('Location: http://www.yoursite.com/v2/index.php');
    Meta refresh redirect:
    HTML Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html lang='en'>
    <meta http-equiv='Content-Type' content='text/html; charset=ISO-8859-1'>
    <!-- the next meta tag does the redirect -->
    <meta http-equiv="refresh" content="3;url=http://www.yoursite.com/v2/index.php">
    <title>Page Title</title>
    <p>Our web site has moved. If you are not automatically redirected to it in
    a few seconds, please click the link below, and don't forget to bookmark
    the new location.</p>
    <p><a href="http://www.yoursite.com/v2/index.php">Go to new location</a></p>
    "Well done....Consciousness to sarcasm in five seconds!" ~ Terry Pratchett, Night Watch

    How to Ask Questions the Smart Way (not affiliated with this site, but well worth reading)

    My Blog
    cwrBlog: simple, no-database PHP blogging framework

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center