【发布时间】:2015-01-12 10:28:41
【问题描述】:
我有几个扩展名为 htm 的文件,我想使用 htaccess 代码以 php 运行
这是我正在使用的 htaccess 代码
AddHandler application/x-httpd-php5 .htm .php .html
这段代码工作正常,但现在我更改了我的托管服务器,因为这段代码不起作用。
我尝试了所有这些代码,但没有一个工作
AddHandler application/x-httpd-php .htm .php .html
AddType application/x-httpd-php .html .htm
AddType application/x-httpd-php5 .html .htm
我的新服务器说
cPanel Linux Hosting packages only support the SymLinksIfOwnerMatch option in the .htaccess file.
请指点我正确的方向,我怎样才能在我的服务器上将 htm 文件作为 php 运行
【问题讨论】: