似乎有些apache模块正在干扰我的请求uris,因为它后缀为“.html”。
我的重写日志:
172.16.103.1 - - [08/Mar/2012:14:56:33 +0100] [www.example.org/sid#7ff723575b58][rid#7ff724b4fc58/initial] (1) pass through /folder/subfolder/
172.16.103.1 - - [08/Mar/2012:14:56:33 +0100] [www.example.org/sid#7ff723575b58][rid#7ff724b42468/subreq] (3) [perdir /srv/www/html/project/] add path info postfix: /srv/www/html/project/folder/subfolder.html -> /srv/www/html/trustedshops/folder/subfolder.html/
172.16.103.1 - - [08/Mar/2012:14:56:33 +0100] [www.example.org/sid#7ff723575b58][rid#7ff724b42468/subreq] (3) [perdir /srv/www/html/project/] strip per-dir prefix: /srv/www/html/project/folder/subfolder.html/ -> folder/subfolder.html/
这仅发生在我们的开发服务器上。但是比较整个apache配置很难。哪个模块可以负责哪些想法?
答案 0 :(得分:5)
在重写规则上使用NS标志,或
RewriteCond %{IS_SUBREQ} t
RwriteRule ^ - [L]