我有一个.htaccess,带有:
<FilesMatch ".php$|.js$">
SetHandler application/x-httpd-php
</FilesMatch>
如何排除子目录?
非常感谢。
试试这个:
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/folder_to_exclude
RewriteRule .(php|js)$ - [H=application/x-httpd-php]