我问一个问题,如果我可以执行的HTML文件,PHP文件和我得到这些问题的答案htaccess文件和处理程序的问题?
AddType application/x-httpd-php5 .php .html
和另一个答案
AddHandler application/x-httpd-php .html .htm
这里有另外一个
RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html
和我得到1个问题 当我用写任何条件添加类型它发送给我下载页面而不是运行它 例如,如果我有有PHP代码 一个index.html文件后,我创建的.htaccess和写
RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html
然后尝试导航链接发给我的index.html,而不是下载运行它
原题:http://stackoverflow.com/questions/7123560/small-problem-with-htaccess-file –
[使用.htaccess将所有.html页面作为.php文件运行?](https://stackoverflow.com/questions/4687208/using-htaccess-to-make-all-html-pages-to -run-AS-PHP文件) – kenorb