Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Directory URL does not show index.php file 1

Status
Not open for further replies.

wuz

Programmer
Jul 10, 2000
18
0
0
US
I have loaded several index.php files before, and the system works fine if you use the directory URL. For example, would pull up
But for some reason, on this particular server, the index.php file is not showing up when the directory URL is used. Any ideas what setting needs to be changed so that it will work? Or can I utilize an .htaccess file to show the files?

I'd greatly appreciate any insight to this!

Susan :)
 
If you have access to the httpd.conf file, then just look for the DirectoryIndex directive in that file

it should look like:

<IFModule mod_dir.c>
DirectoryIndex index.html index.htm index.shtml
</IFModule>

All you need to do is add &quot;index.php&quot; or whatever other index extensions you want to be read as a URL index.
 
Thank you very much!!!

I actually didn't have access to the server, but I was able to use the line in an .htaccess file, and it worked like a charm!

Susan :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top