.htaccess 合并'&书信电报;档案>';htaccess中的指令?
我的.htaccess 合并'&书信电报;档案>';htaccess中的指令?,.htaccess,file,mod-rewrite,.htaccess,File,Mod Rewrite,我的.htaccess文件如下所示: <Files misc> ForceType application/x-httpd-php </Files> <Files computers> ForceType application/x-httpd-php </Files> <Files products> ForceType application/x-httpd-php </Files> Fo
.htaccess
文件如下所示:
<Files misc>
ForceType application/x-httpd-php
</Files>
<Files computers>
ForceType application/x-httpd-php
</Files>
<Files products>
ForceType application/x-httpd-php
</Files>
ForceType应用程序/x-httpd-php
ForceType应用程序/x-httpd-php
ForceType应用程序/x-httpd-php
…还有更多。然而,鉴于该指令被称为Files(即复数),似乎应该有一种方法将所有这些浓缩为一条规则
我该怎么做?我尝试了一些方法,比如逗号和管道,但到目前为止没有任何效果,当我加载页面时,它会显示我所有的PHP代码
<Files ~ "^(misc|computers|products)$">
ForceType application/x-httpd-php
</Files>
ForceType应用程序/x-httpd-php
ForceType应用程序/x-httpd-php