标签: php apache .htaccess
例如,如果我的.htaccess配置文件为:
Options All-Indexes Options +FollowSymLinks RewriteEngine on RewriteRule link/(.*)/(.*)/ link.php?cat=$&id=$2 [NC,L] RewriteRule link/(.*)/(.*) link.php?cat=$1&id=$2 [NC,L]
我想阻止对link.php?cat = &id = 的访问,但只允许允许访问链接* / *。