Re: www.mysite.com/index.php?

From: Chris Hope (blackhole_at_electrictoolbox.com)
Date: 03/26/04


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/


Relevant Pages

  • Re: Passing parameters to .NET smart device application
    ... Public Shared Sub Main) ... Form1 to Class1 and added a debug set of command line arguments and got them ... Chris Tacke, Embedded MVP ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: recursive "yes" expected behaviour
    ... It didnt eat any RAM, ... > The command is not recursive; ... Mh, right Chris it's not merely recursive, I called it in that way ...
    (alt.os.linux)
  • Re: FTP user isolation, Isolate users using Active Directory
    ... One thing to check with what you have shown below is your SetADProp FTPRoot ... Our Username is "Chris" ... > Verified that the msIIS-FTPRoot and msIIS-FTPDir were set correctly by ... > COMMAND:> USER ...
    (microsoft.public.inetserver.iis.ftp)
  • Re: Reset Drop Down List
    ... One possibility is to set a hidden field with the value on the reset pass ... and then use that value for the redirect. ... "Chris Moore" wrote in message ... >>X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: help with ls command options
    ... I started to look at grep (since ... >>command line would be appreciated. ... Thanks Chris, that helps. ... only been with linux for a few months and there is a lot to catch up on. ...
    (alt.os.linux)