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

From: Date: Fri, 26 Oct 2001 17:34:53 +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-72470@lists.php.net to get a copy of this message
You might try META tags. Put this in the head section of your index.html file:
        < meta http-equiv="refresh" content="0; url=index.php" >
If the user has JavaScript disabled, you're probably best off using a link and letting the user click through. You may also be able to adjust your Apache or IIS or whatever configuration to load index.php by default, and even eliminated index.html altogether. That's what I wound up doing, and I have experienced no problems. At 10:25 AM 10/26/2001, René Fournier wrote:
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net
Sliante, Richard S. Crawford http://www.mossroot.com mailto:rscrawford@mossroot.com AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford "It is only with the heart that we see rightly; what is essential is invisible to the eye." --Antoine de Saint Exupéry "Push the button, Max!"

« previous php.general (#72470) next »