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
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
Originally Posted by directhex
Cheers mate, will try it out later tonight
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>
Worth also putting a static link in case the meta doesn't work (which happens in some cases )
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>
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>
It should actually be the doc type first...Originally Posted by Iain
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>
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)