Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6726785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:58:07+00:00 2026-05-26T09:58:07+00:00

Summary I am having trouble getting UrlRewriteFilter up and running on Tomcat. Problem I

  • 0

Summary

I am having trouble getting UrlRewriteFilter up and running on Tomcat.

Problem

I can only get one of the two rules from the default urlrewrite.xml file to work. I followed the installation directions without much of a problem and I haven’t changed any defaults or messed with the configuration file.

Example

The outbound rule works: http://localhost:8080/mysite/rewrite-status successfully takes me to a description page of my urlrewrite.xml file.

But the regular rule doesn’t work: http://localhost:8080/mysite/test/status does not redirect me to http://localhost:8080/mysite/rewrite-status. I get a 404 result.

Am I expecting the wrong thing from these rules? What could be wrong?

Details

Here is the urlrewrite.xml file that comes with the installation:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE urlrewrite PUBLIC "-//tuckey.org//DTD UrlRewrite 3.2//EN"
    "http://www.tuckey.org/res/dtds/urlrewrite3.2.dtd">

<urlrewrite>

    <rule>
        <note>
            The rule means that requests to /test/status/ will be redirected to /rewrite-status
            the url will be rewritten.
        </note>
        <from>/test/status/</from>
        <to type="redirect">%{context-path}/rewrite-status</to>
    </rule>


    <outbound-rule>
        <note>
            The outbound-rule specifies that when response.encodeURL is called (if you are using JSTL c:url)
            the url /rewrite-status will be rewritten to /test/status/.

            The above rule and this outbound-rule means that end users should never see the
            url /rewrite-status only /test/status/ both in their location bar and in hyperlinks
            in your pages.
        </note>
        <from>/rewrite-status</from>
        <to>/test/status/</to>
    </outbound-rule>

</urlrewrite>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T09:58:07+00:00Added an answer on May 26, 2026 at 9:58 am

    Does adding or removing trailing forward slash (/) make a difference? Could experiment with setting it in both or either for the from and to tags of rule tag set.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having trouble getting this to work: /// <summary> /// Retrieve search suggestions from previous
Summary: I am having trouble connecting to an exchange 2007 mailbox that is running
I'm porting one of my projects from C# and am having trouble solving a
In summary, I am having a problem where I read what I expect to
I'm having some trouble getting my ViewModel to return a non-null object in the
I'm having trouble building gdlib. As far as I can tell, zlib, png and
Summary New to iPhone programming, I'm having trouble picking the right optimization strategy to
I'm having some trouble getting started with the Sync Framework. In doing research, it
Summary: I'm having some svn trouble, and after debugging it for a while, I'm
I'm having trouble getting my app to rotate since switching to Xcode 4 and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.