Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: bcliburn on March 18, 2006, 04:13:10 PM
-
How do I change the default mime type to .php? Is there a way to have the server look for .php and if not found look for .html then .htm etc?
-
How do I change the default mime type to .php? Is there a way to have the server look for .php and if not found look for .html then .htm etc?
You can specify a default mime type (http://httpd.apache.org/docs/2.0/mod/core.html#defaulttype) in Apache (i don't know if this is sensible to do however), may be it is better/easier to add/modify the DirectoryIndex (http://httpd.apache.org/docs/2.0/mod/mod_dir.html#directoryindex) to specify which file(s) and in which order Apache should look for when it is trying to display the url.
-
How do I change the default mime type to .php? Is there a way to have the server look for .php and if not found look for .html then .htm etc?
If dynamic content in enabled for an i-bay, then apache already searches for index.php and then index.html, then index.htm.
-
Cool thanks, I guess I'm still used to using m$ servers and having to manually add .php I took out the index.html and it works fine now. :pint: