Re: www.mysite.com/index.php?
From: Chris Hope (blackhole_at_electrictoolbox.com)
Date: 03/26/04
- Next message: Chris Hope: "Re: I am using Blob and it won't store 1500 characters of text"
- Previous message: Jaak: "Re: optimise regular expression code"
- In reply to: Tyrone Slothrop: "Re: www.mysite.com/index.php?"
- Next in thread: Savut: "Re: www.mysite.com/index.php?"
- Reply: Savut: "Re: www.mysite.com/index.php?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 26 Mar 2004 22:53:28 +1200
Tyrone Slothrop wrote:
> On 25 Mar 2004 03:57:59 GMT, galsaba@aol.com (Galsaba) wrote:
>
>>
>>I want that when a user type "www.mysite.com" he will go to
>>www.mysite.com/index.php. How to do it?
>>Seems to me that always the browser will go to www.mysite.com/index.html.
>>It means that I need to have a command there to redirect to
>>www.mysite.com/index.php. How can I redirect it with 0 time delay?
>>
>>Thanks,
>>Joe
>
> What happens if you remove index.html?
>
> In any event:
> <? header ("location: index.php"); ?>
Your last suggestion would only work if the .html file type was set to be
parsed as PHP. Otherwise you'd get a nice blank page. See the other posts
about configuring the web server for DirectoryIndex. If you're using IIS
it's a matter of navigating your way around the GUI and finding the
directory index option.
Chris
-- Chris Hope The Electric Toolbox Ltd http://www.electrictoolbox.com/
- Next message: Chris Hope: "Re: I am using Blob and it won't store 1500 characters of text"
- Previous message: Jaak: "Re: optimise regular expression code"
- In reply to: Tyrone Slothrop: "Re: www.mysite.com/index.php?"
- Next in thread: Savut: "Re: www.mysite.com/index.php?"
- Reply: Savut: "Re: www.mysite.com/index.php?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|