PDA

View Full Version : index.php to automatically load in sub-directories?



Anonymous
03-07-2003, 01:26 PM
Hello,

All my previous hosts, I was able to automatically access the index.php just by going to the directory using a sub-domain such as:

dan.yourname.com/forums

And it would automatically load up the index.php. But on HostPC, I'm getting Page Not Found, Error 404.

However, if I type in:

dan.yourname.com/forums/index.php

It works fine.

Is there anyway to set the directory to automatically load the index.php file? I tried copying a test index.htm and index.html but those didn't load up either.

Any help is much appreciated.

Thanks,
Dan

Dan
03-07-2003, 01:58 PM
Please disregard this help request.

Adding a / at the end such as "dan.yourname.com/forums/" works rather than "dan.yourname.com/forums" alone. I can live with that.

Dan

bluesguy
03-08-2003, 02:11 PM
Try making a file in the forum directory called .htaccess (make it ascii txt file) containing this line:

DirectoryIndex index.php

for more info on this, see

http://www.javascriptkit.com/howto/htaccess6.shtml