Skip to content
Paul edited this page Jul 7, 2015 · 2 revisions

Configuration mod_rewrite style

Example

    <filter>
        <filter-name>UrlRewriteFilter</filter-name>
        <filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class>
        <init-param>
            <param-name>modRewriteConfText</param-name>
            <param-value>

    # redirect mozilla to another area
    RewriteCond  %{HTTP_USER_AGENT}  ^Mozilla.*
    RewriteRule  ^/$                 /homepage.max.html  [L] 

            </param-value>
        </init-param>
    </filter>

See documentation http://cdn.rawgit.com/paultuckey/urlrewritefilter/master/src/doc/manual/4.0/index.html#mod_rewrite_conf

Clone this wiki locally