Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Configuring URLRewrite filter for Jira

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>

 

1 answer

Hi Mejia,

Did you happen to find an answer for your question above?

 

Regards,

Rathna

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you