Forum Moderators: phranque

Message Too Old, No Replies

Apache and Directories

A quick one!

         

ahmedtheking

6:52 pm on Dec 16, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm just config'in apache .conf but I can't figure out why directories don't go straight to index.php, eg, if you go to mysite/about it doesn't load, whereas if you go to mysite/about/index.php, it works!

Receptional

7:04 pm on Dec 16, 2006 (gmt 0)



I'm very new to configuring apache... but try this...

in the httpd.conf file look for this:

# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
DirectoryIndex index.html
</IfModule>

Presumably that needs changing to index.php :)

ahmedtheking

1:50 pm on Dec 19, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Awesome! Donno how I overlooked that!