Re: Best [non-PHP] way to redirect a browser
| From: | Mike Frazer | Date: | Fri, 26 Oct 2001 18:53:57 +0000 |
| Subject: | Re: Best [non-PHP] way to redirect a browser | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-72484@lists.php.net to get a copy of this message | ||
Two ways:
#1 - If you have server admin access, just add to the default page list
"index.php" in your server config.
#2 - Use a meta refresh:
<html>
<head>
<meta http-equiv="refresh"
content="0;URL=http://www.yourdomain.tld/path/to/your/script.php">
</head>
</html>
Mike Frazer
"René fournier" <rene@smartslitters.com> wrote in message
news:NEBBIIMGILDAEGKEIGOPMEIHCNAA.rene@smartslitters.com...
> This is really I guess a non-PHP question, so please excuse...
>
> What is the most reliable, browser-safe way to redirect the browser from a
> default index.html to, say, index.php? The I'm doing it now is with the
> following javascript:
>
> <script type="text/javascript" language="Javascript">
> document.location="index.php"
> </script>
>
> And it works, but I wanted to know if any of you are using a better [more
> compatible] way of redirecting the browser (say, if it doesn't have
> JavaScript (!?)).
>
> ...Rene
>
> ---
> Rene Fournier
> renefournier@yahoo.com
>