Click to See Complete Forum and Search --> : automatic page redirect


katpaw
08-13-2004, 06:12 PM
Can someone tell me how to automatically redirect a page to another page?

Daniel T
08-13-2004, 08:29 PM
Put this in the <head>:<meta http-equiv="refresh" content="5;url=page.htm" />
Replace 5 with the number of seconds you want it to wait before it redirects, and replace page.htm with the URI of the page you want it to redirect to.

katpaw
08-14-2004, 04:11 AM
Thank you, Daniel.
Appreciate the help. Am fairly new at this.

antaramedia0com
08-14-2004, 04:30 AM
You can also do it with php, if you have php support on your server.
Insert this in the top of the page.


<?php
header("Location: changeThisToThePageToRedirecTo.php");
?>


Because php code is parsed before executing the html, using the php method immediately redirects your page.

With the <META > redirection, the browser may read your page until the point where the redirection command is located.

Daniel T
08-14-2004, 08:07 AM
Originally posted by antaramedia0com
With the <META > redirection, the browser may read your page until the point where the redirection command is located. No, it still reads the whole page...