这里是我的.htaccess文件现代重写完整befuzzlement
Options +FollowSymlinks
RewriteEngine On
RewriteBase/
RewriteRule subpage\?sid /index.php [R=301,L,NC]
我的要求是http://example.com/subpage?sid
它使返回404未找到,而不是重定向到index.php
我已经试过不逃避?并将请求更改为http://example.com/subpage\?sid
我已经尝试了大量的东西试图得到这个工作,但我现在难倒了。
你有没有三'^重写规则子页面\?SID/index.php'? (注意插入^) – Pascal 2009-11-27 08:30:53
现在我已经给出了这个答案,它确实属于ServerFault。 – outis 2009-11-27 08:50:30
这是一种编程,所以在stackoverflow上可以。 – 2009-11-27 08:56:08