Hi I'm trying to configure the Tuckey URLRewrite filter for Jira we are going to change the base URL as part of an upgrade we are planning. We are currently using it in our confluence environment successfully and now want to use it for Jira but have not been able to get it to work correctly. Jira seems to be a little different it seems, wondering if anyone may have some insight on how they may have configured it for Jira.
This what I have so far in the URLRewrite.xml file.
<urlrewrite>
<rule>
<name>Domain Name Check</name>
<condition name="host" operator="notequal">jirademo.domain.com</condition>
<from>^(.*)$</from>
<to type="redirect">http://jirademo.domain.com$1</to>
<rule>
<!-- Caching of static resources -->
<class-rule class="com.atlassian.jira.plugin.webresource.CachingResourceDownloadRewriteRule"/>
<!-- @since 5.0 [KickAss]-->
<rule>
<from>^/issues(\?.*)?$</from>
<to type="permanent-redirect">issues/$1</to>
</rule>
</urlrewrite>
This is what I have in the Web.xml file not sure if I have it in correct location.
<!-- gzip *must* be before UrlRewriteFilter as the rewrite filter sends 'forwards' -->
<filter-mapping>
<filter-name>gzip</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>ERROR</dispatcher>
</filter-mapping>
<filter-mapping>
<filter-name>UrlRewriteFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>UrlRewriteFilter</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
</filter-mapping>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.