HTML Redirect

<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

2 Responses to “HTML Redirect”

  1. Using javascript to redirects:

    window.location = ‘http://www.fredpalma.com’

  2. Permanent redirect using php:

    < ?
    Header( "HTTP/1.1 301 Moved Permanently" );
    Header( "Location: http://www.fredpalma.com” );
    ?>

Discussion Area - Leave a Comment