2012-09-20 59 views

回答

0

我看起來像Tuckey支持單獨的urlrewrite.xml

參見Configuration File WEB-INF/urlrewrite.xml

+0

感謝您的答覆!我實際上從http://urlrewritefilter.googlecode.com/svn/trunk/src/doc/manual/4.0/index.html#mod_rewrite_conf找到答案(向下滾動到最後)。重寫地圖\t不支持 – curious

+0

您應該發佈自己的答案。 http://blog.stackoverflow.com/2011/07/its-ok-to-ask-and-answer-your-own-questions/ – pd40

1

urlrewrite.xml路徑可以在過濾器配置進行修改。

它可以在WEB-INF/web.xml文件文件來完成,通過改變confPath參數值的方式:

<filter> 
    <filter-name>UrlRewriteFilter</filter-name> 
    <filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class> 
    <!-- if you need to the conf file path can be changed 
     it is specified as a path relative to the root of your context 
     (default /WEB-INF/urlrewrite.xml) --> 
    <init-param> 
     <param-name>confPath</param-name> 
     <param-value>/WEB-INF/urlrewrite.xml</param-value> 
    </init-param> 
</filter> 

文檔瀏覽:http://urlrewritefilter.googlecode.com/svn/trunk/src/doc/manual/4.0/index.html#filterparams

相關問題