匹配%2F我有一组的重写规则(在.htaccess)是否是这样的:不能在mod_rewrite的
RewriteRule ^list/vendor/(.*)$ list.php?vendor=$1
RewriteRule ^list/product/(.*)$ list.php?product=$1
RewriteRule ^list/(.*)$ list.php?search=$1
(我不认为前两个是有关我的问题,虽然) 。
当我myserver.com/list/foo%2Cbar
甚至myserver.com/list/foo/bar
型,我得到我预期的结果:list.php的被称为与$_GET['search']
foo,bar
和foo/bar
。如果我输入myserver.com/list/foo%2Fbar
,看起来规则不匹配!我得到一个404错误,而不是。这里会发生什么? Apache 2.2.14,如果它很重要。
(我在Firefox和Chrome上试过,结果相同 - 当然它可能是浏览器的动作)。
难道是Apache在这种情况下甚至没有在我的.htaccess文件中查找?这将是一个错误,我猜... – LHMathies
错误日志包含(在信息级别):在URI中找到%2f(编码的'/')...返回404' – cweiske