我正在尝试更改以下重写规则以接受更多文件夹。目前任何其他 urlmydomain.com\test 将被定向到index.php.
RewriteRule ^((?!test).)*$ index.php [QSA,L]
我需要添加更多的子文件夹,例如等test1,test2以便我可以访问 url\test1等\test2。
重写规则
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^((?!test).)*$ index.php [QSA,L]