RE: [PHP] Using index.php instead of index.html

From: Date: Wed, 17 Jul 2002 00:53:54 +0000
Subject: RE: [PHP] Using index.php instead of index.html
Groups: php.general 
Request: Send a blank email to php-general+get-107996@lists.php.net to get a copy of this message
Why not just add it to the httpd.conf, this would allow it to work within the whole server And not just one director / vhost ect.... --------------------------------------------------------------------------- Chris Kay Technical Support - Techex Communications Website: www.techex.com.au Email: chris.kay@techex.net.au Telephone: 1300 88 111 2 - Fax: (02) 9970 5788 Address: Suite 13, 5 Vuko Place, Warriewood, NSW 2102 Platinum Channel Partner of the Year - Request DSL - Broadband for Business --------------------------------------------------------------------------- > -----Original Message----- > From: Mark Gallagher [mailto:mark@cyberfuddle.com] > Sent: Wednesday, 17 July 2002 4:05 AM > To: Sailom > Cc: php-general@lists.php.net > Subject: Re: [PHP] Using index.php instead of index.html > > > Sailom wrote: > > > I am a novice on PHP and web programming. Can any one > suggest me if > > I can use index.php in place of index.html? I really need > to concern > > about > > Sure you can! > > If you're using an Apache webserver, create a file named .htaccess > containing the following: > > DirectoryIndex index.php index.html > Redirect index.html http://www.bar.net/index.php > > The first line says "the directory index file is index.php, not > index.html". The second line says "whenever you get a request for > index.html, send them index.php instead". > > > security issue too. > > Umm... *what*? > > > > -- > Mark Gallagher > http://cyberfuddle.com/infinitebabble/ > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#107996) next »