在我的htaccess文件中我有这段代码:
RewriteEngine On RewriteCond %{SCRIPT_FILENAME} !-d RewriteCond %{SCRIPT_FILENAME} !-f #RewriteRule ^(.*) index.php?url=$1 #RewriteRule ^profile/(\w+)$ ./members.php?name=$1 #RewriteBase /www.embellez.com/ #INGLES RewriteRule ^en/listagem/(\w+)$ ./en/listagem.php?c=$1 RewriteRule ^en/listagem/(\w+)/$ ./en/listagem.php?c=$1 RewriteRule ^en/detalhe/(\w+)/(\w+)$ ./en/detalhe.php?c=$1&id=$2 RewriteRule ^en/detalhe/(\w+)/(\w+)/$ ./en/detalhe.php?c=$1&id=$2
上面代码中的内容允许您使用友好的URL。我现在想要的是不使用url的友谊,即没有规则来访问给定文件夹中的页面(./admin)。即,规则在此文件夹(./admin)中将变得毫无意义。