如何配置对HTML的htaccess可以执行php

时间:2019-06-18 04:37:57

标签: .htaccess config

我想配置htaccess文件以执行html中的php文件,但出现错误500 Internal Server。

这里:

<IfModule mod_rewrite.c>

 RewriteEngine on

 RewriteCond %{HTTPS} !=on [NC]

 RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

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

</IfModule>

0 个答案:

没有答案
相关问题