View Single Post
  #7 (permalink)  
Old 10-08-2008, 10:14 AM
wige's Avatar
wige wige is offline
Moderator
WebProWorld Moderator
 
Join Date: Jun 2006
Location: United States
Posts: 2,661
wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9
Default Re: with index.html OK, wihout downlaad

Interestingly enough, on Firefox both versions try to download. I think this is happening because the server configuration was set up incorrectly. I think the configuration was modified to parse .html files as .php, but the content type is not getting changed correctly when the PHP parser processes the document.

Try adding the following:

AddHandler x-httpd-php .html

The reason is that there are two different ways Apache can process PHP files, depending on the way PHP is installed on the server, and the way the Apache server was compiled. It has to do with how Apache sends the call to the PHP processor. All you need to know is when AddType fails, use AddHandler.

If this fails, on some servers you need to create a seperate line for each extension. So instead of the line you have above, you would use:
AddType application/x-httpd-php .html
AddType application/x-httpd-php .htm
__________________
The best way to learn anything, is to question everything.

Last edited by wige; 10-08-2008 at 10:22 AM.
Reply With Quote