这个htaccess有什么问题?我正在尝试将所有带有问号(例如“www.mysite.com/?bla=bla”)的内容重定向到“www.mysite.com/router.php?bla=bla”
AddDefaultCharset UTF-8
RewriteEngine On
RewriteRule ^([\w]{1,7})$ short.php?p=$1 [L]
RewriteRule ^([\w]+)\.html$ html/$1.html [L]
RewriteRule ^([\w]+)\.php$ php/$1.php [L]
RewriteRule ^\?(.+)$ router.php?$1 [L]
除最后一条规则外,每条规则都有效,它返回给我:
Forbidden
You don't have permission to access / on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.