htaccess rule to parse php in html files not working

前端 未结 4 686
借酒劲吻你
借酒劲吻你 2020-12-03 20:17

can\'t for the life of me work out why this isn\'t working - on a dreamhost server, I\'ve created an htaccess file and added AddHandler php5-cgi .html .htm to a

4条回答
  •  失恋的感觉
    2020-12-03 20:39

    try this

      AddType application/x-httpd-php .html .htm
    

    The above setting will work if the apache is picking php as a module.

     AddHandler application/x-httpd-php .html .htm
    

    or

     AddHandler application/x-httpd-php5 .html .htm
    

    above will work if apache is executing php as CGI?

    there is no harm i would say to put both of the above conditions together but try one over other and see if it work for you.

    read more here

提交回复
热议问题