1
在我的网站上,输入www.abc.com/folder
时,它将重定向到index.php
。我希望脚本不要触及其他文件夹和文件。那么无论如何要防止这种情况?.htaccess重定向根文件夹中的所有内容
这是.htaccess
文件:
RewriteEngine on
RewriteCond %{request_filename} -f
RewriteRule ^(.*) $1 [L]
RewriteRule ^([a-z]+)(/([^/]{0,32})(/.+)?)?$ index.php?a=$1&q=$3 [L]