Forum Moderators: phranque
Have a domain on the server where the index page doesn't display unless specifically called. so www.somedomain.co.uk/index.html will work but not www.somedomain.co.uk/
Now I did edit the httpd.conf directoryindex entry to add index.htm to the list of allowable index pages. But removing the entry or leaving it in makes no difference and the other 15 sites on the server aren’t suffering from the same problem.
Anyone have an idea where I'm going wrong here.. or do you need more info.
Kind Regards
Tony Hyams
The first step would be to verify this hypothesis with a server headers checker [webmasterworld.com] -- look at a URL that loads and renders normally, and then the one that 'downloads', comparing the MIME-type headers.
The directive to assign MIME-types is "AddType", e.g.
AddType text/html .htm
You could compare your config for the servers that work to the one that doesn't, looking for differences. Also, as Anyango says, look for any .htaccess files containing AddType directives or mod_rewrite RewriteRule [T=] flags that might override the proper MIME-type setting.
Jim
There was a .htaccess file in the root for the domain that had an incorrect AddType directive. Removing this solved the problem
Thanks a lot .. you guys saved me some real teeth grinding. I have added this to my ever growing list of stupid things I have done that I shouldn't do again :)