Re: Re: Best [non-PHP] way to redirect a browser

From: Date: Fri, 26 Oct 2001 19:13:11 +0000
Subject: Re: Re: Best [non-PHP] way to redirect a browser
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-72487@lists.php.net to get a copy of this message
Actually beyond that, for #1, if you server allows you to create .htaccess files, simply create a .htaccess file in your root directory, and put this in it: DirectoryIndex index.php Mike Mike Frazer wrote:
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


« previous php.general (#72487) next »