Brandon Feiffe
Brandon Feiffe

Reputation: 1

Rewrite Client Facing URL with Tomcat Rewrite Valve

I currently have a rewrite.config file with the following: RewriteRule ^/abc /docs. This successfully directs clients to the docs webapp, but I would still like the client to see localhost/abc in their browser.

In Apache mod_rewrite, this would be handled by simply adding [PT] to the end of the rewrite rule.

Any suggestions?

Thanks, Brandon

Upvotes: 0

Views: 120

Answers (1)

Joe Aldrich
Joe Aldrich

Reputation: 501

I would suggest using the Tuckey UrLRewriteFilter. It appears to have better documentation and offer more flexibility than Tomcat's Rewrite value.

Upvotes: 2

Related Questions