Results 1 to 10 of 10

Thread: Holding page

  1. #1
    Civilian Nick F's Avatar
    Join Date
    May 2004
    Location
    London
    Posts
    4,668
    Thanks
    9
    Thanked
    18 times in 10 posts
    • Nick F's system
      • CPU:
      • 2.4Ghz C2D
      • Memory:
      • 4GB
      • Storage:
      • 320Gb internal / 750Gb external
      • Case:
      • Apple iMac
      • Operating System:
      • Mac OSx
      • Monitor(s):
      • 24inch
      • Internet:
      • 8mb BE connection

    Holding page

    I need to put a holding page on my domain and send people to another site after a time delay of 10 seconds for example so they can read a message.

    Anyone know how to do this?

    Cheers

  2. #2
    Comfortably Numb directhex's Avatar
    Join Date
    Jul 2003
    Location
    /dev/urandom
    Posts
    17,074
    Thanks
    228
    Thanked
    1,027 times in 678 posts
    • directhex's system
      • Motherboard:
      • Asus ROG Strix B550-I Gaming
      • CPU:
      • Ryzen 5900x
      • Memory:
      • 64GB G.Skill Trident Z RGB
      • Storage:
      • 2TB Seagate Firecuda 520
      • Graphics card(s):
      • EVGA GeForce RTX 3080 XC3 Ultra
      • PSU:
      • EVGA SuperNOVA 850W G3
      • Case:
      • NZXT H210i
      • Operating System:
      • Ubuntu 20.04, Windows 10
      • Monitor(s):
      • LG 34GN850
      • Internet:
      • FIOS
    <meta http-equiv="refresh" content="timeinseconds;url=http://newurl"/>

  3. #3
    Civilian Nick F's Avatar
    Join Date
    May 2004
    Location
    London
    Posts
    4,668
    Thanks
    9
    Thanked
    18 times in 10 posts
    • Nick F's system
      • CPU:
      • 2.4Ghz C2D
      • Memory:
      • 4GB
      • Storage:
      • 320Gb internal / 750Gb external
      • Case:
      • Apple iMac
      • Operating System:
      • Mac OSx
      • Monitor(s):
      • 24inch
      • Internet:
      • 8mb BE connection
    Quote Originally Posted by directhex
    <meta http-equiv="refresh" content="timeinseconds;url=http://newurl"/>

    Cheers mate, will try it out later tonight

  4. #4
    HEXUS.net Webmaster
    Join Date
    Jul 2003
    Location
    UK
    Posts
    3,108
    Thanks
    1
    Thanked
    0 times in 0 posts
    that goes in the <head> tag in case you're not aware

    Code:
    <head>
    <meta http-equiv="refresh" content="10;url=http://newurl" />
    <title>blah</title>
    </head>

  5. #5
    Moderator DavidM's Avatar
    Join Date
    Jan 2005
    Posts
    8,779
    Thanks
    802
    Thanked
    252 times in 234 posts
    Worth also putting a static link in case the meta doesn't work (which happens in some cases )

  6. #6
    Civilian Nick F's Avatar
    Join Date
    May 2004
    Location
    London
    Posts
    4,668
    Thanks
    9
    Thanked
    18 times in 10 posts
    • Nick F's system
      • CPU:
      • 2.4Ghz C2D
      • Memory:
      • 4GB
      • Storage:
      • 320Gb internal / 750Gb external
      • Case:
      • Apple iMac
      • Operating System:
      • Mac OSx
      • Monitor(s):
      • 24inch
      • Internet:
      • 8mb BE connection
    I uploaded the following code to my website and deleted my old index.php For some reason it is only displaying the code and displaying the page??? I have called the file index.html

    PHP Code:
    <head>

    <
    meta http-equiv="refresh" content="10;url=http://lifestyle.hexus.netl"/>

    <
    title>UK HDTV News Community</title>

    <!
    DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <
    html xmlns="http://www.w3.org/1999/xhtml">

    </
    head>

    <
    body>


    <
    center>

    content.................

    <
    p>

    You will be redirected to the new site in 15 seconds or click here


    </body>

    </
    html

  7. #7
    Comfortably Numb directhex's Avatar
    Join Date
    Jul 2003
    Location
    /dev/urandom
    Posts
    17,074
    Thanks
    228
    Thanked
    1,027 times in 678 posts
    • directhex's system
      • Motherboard:
      • Asus ROG Strix B550-I Gaming
      • CPU:
      • Ryzen 5900x
      • Memory:
      • 64GB G.Skill Trident Z RGB
      • Storage:
      • 2TB Seagate Firecuda 520
      • Graphics card(s):
      • EVGA GeForce RTX 3080 XC3 Ultra
      • PSU:
      • EVGA SuperNOVA 850W G3
      • Case:
      • NZXT H210i
      • Operating System:
      • Ubuntu 20.04, Windows 10
      • Monitor(s):
      • LG 34GN850
      • Internet:
      • FIOS
    doctype and html belong at the top

  8. #8
    HEXUS.net Webmaster
    Join Date
    Jul 2003
    Location
    UK
    Posts
    3,108
    Thanks
    1
    Thanked
    0 times in 0 posts
    Your <html> tag should be first not after <head> and the other tags

    Code:
    <html xmlns="http://www.w3.org/1999/xhtml">
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <head>
    <meta http-equiv="refresh" content="10;url=http://lifestyle.hexus.netl"/>
    <title>UK HDTV News & Community</title>
    </head>

  9. #9
    Member
    Join Date
    Jul 2003
    Posts
    59
    Thanks
    0
    Thanked
    0 times in 0 posts
    Quote Originally Posted by Iain
    Your <html> tag should be first not after <head> and the other tags
    It should actually be the doc type first...


    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="refresh" content="10;url=http://lifestyle.hexus.netl"/>
    <title>UK HDTV News & Community</title>
    </head>

  10. #10
    Large Member
    Join Date
    Apr 2004
    Posts
    3,720
    Thanks
    47
    Thanked
    99 times in 64 posts
    w3c recs also suggest that if you're using XML the XML declaration should be first:

    Code:
    <?xml version="1.0"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    To err is human. To really foul things up ... you need a computer.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 24-02-2006, 05:28 PM
  2. link from forums back to main page
    By Pirate Pete in forum HEXUS Suggestions
    Replies: 2
    Last Post: 07-05-2005, 10:16 PM
  3. Page File Size in WinXP..
    By Starburn in forum Software
    Replies: 15
    Last Post: 26-04-2005, 11:03 AM
  4. Internet Explorer not found page
    By ajbrun in forum Software
    Replies: 16
    Last Post: 25-07-2004, 11:40 AM
  5. Page number link in threads.
    By Trash Man in forum HEXUS Suggestions
    Replies: 0
    Last Post: 10-10-2003, 04:36 PM

Posting Permissions

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