Forum Moderators: coopster
I did added
AddType application/x-httpd-php .html
in the .htaccess file, but whenever above code is present in the .htaccess file, it does not allow users to view the pages, instead it is asking for download/save the file on computer.
I was wondering if someone can help me out.
P.S... current .htaccess file looks like
AddHandler server-parsed .html
AddHandler server-parsed .htm
AddType application/x-httpd-php .html
AddHandler server-parsed .html
in it, it will not work and I guess hence the problem.
Now can anyone tell me how can I phrase SSI and PHP on .html page? without facing this problem?
Thanks for the help.
AddType application/x-httpd-php .html
is used for using php code on page.html type of pages
&
AddHandler server-parsed .html
is used to use SSI code on page.html type of pages.
I have not used
AddHandler server-parsed .html .htm .shtml
But I think what it does is will allow you to use SSI code on .html .htm and .shtml pages. But then there is no need to put .shtml at the end, cuz, .shtml pages can anyway use SSI.
But still the problem of using both .php and ssi on a .html page stands :(