I just went to a private server and I am having a problem with one of my websites. The web address is straders.net and the web page wants to download instead of displaying in the browser. I do have an .htaccess file which reads application/x-httpd-php .php .html .htm but I do not see this being the problem. I have contacted support but haven’t heard anything, does anyone have any ideas of anything I could try? I also do not have any custom compilations of php. Any help would be greatly appreciated.
Why didn’t you post the whole line from your .htaccess?
You probably need to make sure you only have this line:
AddHandler php5-cgi .php .htm .htmlThat will cause Apache to run the HTML document through PHP as CGI, version 5.2.6
AddHandler php5-cgi .php .htm .html
that worked, thank you! Don’t know why it didn’t carry over from the shared server