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

2001-10-26 Thread Mike Frazer

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 [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 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
 [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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

2001-10-26 Thread Mike Eheler

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 [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

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
[EMAIL PROTECTED]