« University of Virginia – Computer Security Video Wins Award // SCIgen – An Automatic CS Paper Generator »
HTML Redirect
Posted on October 22nd, 2007 by Fred
<HTML>
<HEAD>
…
<META HTTP-EQUIV=â€refresh†CONTENT=â€seconds;URL=the-other-url“>
…
</HEAD>
<BODY>
…
</BODY>
</HTML>
seconds : the number of seconds the page is displayed, before performing the redirection.
the-other-url : any absolute or relative URL that will be displayed after the delay has expired.
Ex:
<HEAD> ... <META HTTP-EQUIV="Refresh" CONTENT="3; url=http://www.ifi.unicamp.br/bif"> ... </HEAD>
ex: http://www.ifi.unicamp.br/~library
Using javascript to redirects:
window.location = ‘http://www.fredpalma.com’
Permanent redirect using php:
< ?
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.fredpalma.com” );
?>