Re: Show index.php instead of index.html

From: Date: Thu, 02 Oct 2003 04:38:30 +0000
Subject: Re: Show index.php instead of index.html
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-164684@lists.php.net to get a copy of this message
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" <ryan@coinpass.com> To: "Chris Garaffa" <chris@nilzero.com> Cc: <php-general@lists.php.net>; "Martin Towell" <martin.towell@world.net> 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" <chris@nilzero.com> To: "Ryan A" <ryan@coinpass.com> 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 > chris@nilzero.com > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#164684) next »