A dumb HTML question

Miscellaneous Forums/General Discussion/A dumb HTML question

i should know this but:

I need to know what tag/command forwards a page to another, like you visit this one page, and it instantly jumps you to another website.

i'd like to know ASAP please, :D

If you need to reroute a page, you can use the following tag in the header: <META http-equiv="REFRESH" content="6; URL=index2.html"> The entire page should like the following just in case there is a problem at their end with the oage being rerouted by there browser:

<html> 
<head><title>moved</title> 
<META http-equiv="REFRESH" content="6; URL=http://www.new.isp/directory/index.html"> 
</head> 
<body> 
Moved to: <a href="http://www.new.isp/directory/">http://www.new.isp/directory/</a> . Please bookmark the new location of the site. Thank you for your understanding. 
</body> 



Copy and pasted from here:-

http://iamzen.home.att.net/tricks.html

Dabz

EDIT: I'm not really clued up on HTML, so dont know if it works

Please don't do that, it's really annoying :p

Better just make a button giving the reader the
choice rather than forcing him/her (to some shady place).

thanks

content="6;

Means wait 6 seconds, then load the page. Don't use zero here since a number of browsers will block this "spam-branded" call.

Better is the php command, "location=" is it I think. Needs to be called before any HTML code is written.

PHP solution:

header("Location: www.desktopgaming.net")


[edit] For the love of God, this forum's parsing of URLs is ghastly. :/

for the php solution, remember to do exit; after the header to ensure no other data is ever returned (rare, but it does happen), if anything else is spat out, the header will be corrupt.

GfK thanks. you meant the URL with http. right? Or isn't it required?