在我的场景中,我重定向 我想知道如何限制对“/index.php”的直接访问,但仍然能够从“/index/./”重定向?
请注意“/../”是任何。。。你好像不能在那里用。O.O
在重写脚本中添加以下内容 RewriteCond %{REQUEST_URI} !index.php$ [NC] . 这条规则将永远失败 /index.php (但不是 /index.php?whatever
RewriteCond %{REQUEST_URI} !index.php$ [NC]
/index.php
/index.php?whatever