Contact your hosting provider and ask them to make the change, or go through your 
control panel and look for a setting that will achieve the desired effect.  It's 
probably hiding under your nose, as this is a fairly common requirement for 
data-driven sites.  In the meantime, upload a new index.html file with the following 
in the <head> section:

<META HTTP-EQUIV="refresh" CONTENT="0;URL=index.php">

This will immediately send users to the index.php file while you resolve the 
configuration issues.

Edward Dudlik
Becoming Digital
www.becomingdigital.com



----- Original Message ----- 
From: "Ryan A" <[EMAIL PROTECTED]>
To: "Chris Garaffa" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; "Martin Towell" <[EMAIL PROTECTED]>
Sent: Wednesday, 01 October, 2003 22:23
Subject: Re: [PHP] Show index.php instead of index.html


Hi,
Thanks for replying.

I am on a shared hosting account and dont have access to my httpd.conf file,
is there some way to do the same via .htaccess or something?

Any ideas? i want to open the site today.

Thanks,
-Ryan


We will slaughter you all! - The Iraqi (Dis)information ministers site
http://MrSahaf.com


----- Original Message ----- 
From: "Chris Garaffa" <[EMAIL PROTECTED]>
To: "Ryan A" <[EMAIL PROTECTED]>
Sent: Thursday, October 02, 2003 4:18 AM
Subject: Re: [PHP] Show index.php instead of index.html


> On Oct 1, 2003, at 10:14 PM, Ryan A wrote:
>
> > Hi,
> > I just deleted my index.html page because i want to use my index.php
> > page
> > instead but when i visit my site i see the directory listing instead,
> > what
> > should i do to display the index.php page automatically??
>
> If you're using Apache, edit your httpd.conf file so that
> DirectoryIndex is set to index.php (you can leave index.html in there
> if you think you'll bring it back sometime. Apache will look for the
> files in the order specified in httpd.conf).
>
> For example:
> DirectoryIndex index.html index.php
>
>
> -- 
> Chris Garaffa
> [EMAIL PROTECTED]
>
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to