PDA

View Full Version : .htaccess Configuration?


Morgo
Thu 25th May '00, 4:17pm
Is it possible to alter my .htaccess file such that index.php is counted as an index file. On my Powersurge server if i go to http://www.df3.net I get taken to index.php should there not be an index.htm etc. However on my new linuxwebhost server if I go to http://www.df3.net and there is no index.htm file I just see the dir. contents. it doesnt take me to index.php

So to restate my question, is it possible to alter the .htaccess file to meet my needs?

Cheers :)

wandrer
Thu 25th May '00, 9:29pm
If you have SSI enabled for .html files, you could put up a blank index.html file with the SSI command 'exec cgi = index.php' . That is what I have done on a few customer sites. I've also gone as far as creating forum1.html pages with the ssi command to the forumdisplay.php. That way, the hope is that search engines would better be able to search the forums on a timely manner.

WebStyles
Fri 26th May '00, 12:34am
Just put the following in your .htaccess file:

DirectoryIndex index.php

:)