我想限制此url的访问权限, http://example.com/dir/login,但它不起作用。 .htaccess存在于subdir中。 条件和规则本身没有REMOTE_ADDR条件。
实际的url是:
http://example.com/dir/index.php?/login
RewriteCond %{REMOTE_ADDR} ^192\.168\.100\.4$ RewriteCond $1 !^(index\.php|resources|robots\.txt) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?/$1 [L,QSA]
任何build议限制访问?