index.html and Index.html

flumps

Verified User
Joined
Dec 29, 2003
Messages
107
does anyone know if there is a way how to get apache to recongise capital letters and lower case Index pages.

at the moment if I use Index.html I get forbiddon but if I use index.html it allows the page and displays it.

any ideas?

thanks in advance.
 
Add Index.html to the DirectoryIndex in apache configuration.
 
You can also do it with .htaccess. But I find it better to stick to a standard.
 
sorry to sound like a total newbie but if I dont ask ill never learn...

where is the apache config file located, cant seem to find it.

also would this have to be done to .php extensions aswell?
 
About the config file: /etc/httpd/conf/httpd.conf
Yes, you should add php extensions as well.
 
About the config file: /etc/httpd/conf/httpd.conf
Yes, you should add php extensions as well.

thanks very much smtalk, much appricated. and to floyd who help too.

works a treat. thanks.
 
Also what I meant by sticking to a standard was use lowercase letters and not use uppercase. If you start allowing too many things that are not standard then you can easily forget what you have done. If you have to rebuild the server for some reason then you have to remember all the little things you have done.
 
Also what I meant by sticking to a standard was use lowercase letters and not use uppercase. If you start allowing too many things that are not standard then you can easily forget what you have done. If you have to rebuild the server for some reason then you have to remember all the little things you have done.

that is so true, not not allowed to many so hopefully shouldnt be a problem :D thanks for the heads up.
 
Back
Top