我有以下重写 URL:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Rewrite all other URLs
RewriteRule ^(.*)$ index.php?page=$1 [PT,L]
现在我想添加一个例外,如果 URL 类似于 mysite.com/abc 它应该忽略它以及其中的所有内容。mysite.com/abc/dfgs 也应该被排除在这种重写之外。
我怎样才能做到这一点?