Click to See Complete Forum and Search --> : index.html problem
hughe
12-02-2006, 12:22 PM
I have a number of sites with separate domains set up as directories of my main site with one webhost. Recently three of my sites have developed a problem with the home page in that they will not show the page unless I add index.html to the url. My other sites in different directories all work normally. With the problem sites IE puts up a box telling me that it is an unknown file type and do I want to download it? Firefox does the same except that it tells me that it is a php file.
Here is one of the problem sites: http://topdogtrainingtips.info/
Any ideas?
ray326
12-02-2006, 10:15 PM
Looks to me like you've got a PHP page, maybe an index.php, in that directory but PHP is not running on the server.
The response had an application/x-httpd-php content-type, which should not have been sent to the browser.
hughe
12-03-2006, 04:00 AM
Thanks for the reply. Php is working because this site has some random text replacement which cycles through the variations with no problem. I have tried adding "DirectoryIndex index.html" to my .htaccess file but this has made no difference. Methinks I had better ask my webhost for help. :(
Centauri
12-03-2006, 04:28 AM
On the sites' control panel, select mime types and check that .html files are set as text/html
Cheers
Graeme
hughe
12-03-2006, 12:01 PM
Thanks Graeme, just seen your post. The mime settings are as you suggest. I am now waiting for a reply from my webhost.
Hugh