Gossamer Forum
Home : Products : Links 2.0 : Discussions :

php or shtml as default index?

Quote Reply
php or shtml as default index?
How can make the server look for a *.php or *.shtml file in the directory as it would do for *.html?
I am using php as build extension, so it would be useful to have it displaying the index.php as default when no file is specified after the directory. Any suggestions?

Quote Reply
Re: php or shtml as default index? In reply to
Just remove any index.html or index.htm files you have there....then it will look for either index.php, index.shtml etc files....should work

Andy

Quote Reply
Re: php or shtml as default index? In reply to
nope, doesn't. i guess i have to tell it to the server through commands in .htaccess, but i don't know what commands to use for that. maybe someone knows some good tutorials for .htaccess?

Quote Reply
Re: php or shtml as default index? In reply to
This has been discussed quite a few times in the support forum...if you search for htaccess Directory Index you will find a bunch of Threads where codes have been provided...(next time, try searching the forums more carefully)...

Anyway, you need to add the following line of codes in your .htaccess file:

Code:

DirectoryIndex index.php index.shtml index.html


Regards,

Eliot Lee
Quote Reply
Re: php or shtml as default index? In reply to
Just a quick point:

If the server is setup to override .htaccess then that won't work and you have to contact your host....

.....but obviously try the .htaccess method first.

Paul Wilson.
Installations:
http://www.wiredon.net/gt/