Click to See Complete Forum and Search --> : index.php
Stickdragon
06-05-2003, 10:41 AM
i am trying to use index.php for my main page. the problem is that when i goto the page http://123.123.123.123 it will come up page not found, but if i go http://123.123.123.123/index.php it will load fine. where do i have to add index.php to be a main page like you can with index.html
thanks
dalecosp
06-05-2003, 07:37 PM
Which webserver, Apache?
dwhswebhosting
06-06-2003, 01:00 PM
For apache just go to your httpd.conf and edit the line:
<IfModule mod_dir.c>
DirectoryIndex index.html index.wml index.cgi index.shtml index.jsp index.js index.jp index.php4 index.php3 index.php index.phtml index.htm default.htm default.html home.htm
</IfModule>
You can copy the one above it's a good set up.
This is good to work with since you want the extension you are using most to be in the front for better loading speed.
-Charles :)
PHP Builder
Copyright WebMediaBrands Inc. All Rights Reserved.