Apache 组合mod_重写和mod_ext_过滤器

Apache 组合mod_重写和mod_ext_过滤器,apache,mod-rewrite,filter,Apache,Mod Rewrite,Filter,为了优化我的服务器的xml输出,我编写了一个mod_ext_过滤器,它去除部分xml并发送其余的xml ExtFilterDefine wfs\u geometry\u stripper mode=output intype=text/xml\ cmd=“/www/vhost/mapserver/cgi perl/wfs_stripper.pl” SetOutputFilter wfs\u几何体\u剥离器 现在我想在一个位置上应用这个过滤器,这个位置通过mod_重写规则被重写 RewriteC

为了优化我的服务器的xml输出,我编写了一个mod_ext_过滤器,它去除部分xml并发送其余的xml

ExtFilterDefine wfs\u geometry\u stripper mode=output intype=text/xml\
cmd=“/www/vhost/mapserver/cgi perl/wfs_stripper.pl”
SetOutputFilter wfs\u几何体\u剥离器
现在我想在一个位置上应用这个过滤器,这个位置通过mod_重写规则被重写

RewriteCond%{REQUEST_URI}^\/wfs\/stripped\/
重写规则^/wfs/stripped/(.*)/cgi-bin/mapserv?map=/www/vhosts/mapserver/maps/$1.map&%{QUERY_-STRING}[PT,L]


但是过滤器永远不会被应用,我想这是因为应用的规则的顺序。但是我找不到解决这个问题的方法

应用完整路径,只有clientside可以看到mod_rewrite重写的URL