Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to rewrite URL in Tomcat 6

I'll build a web application and I want to use url rewriting. In apache this is done with mod_rewrite. But how can I rewrite urls with Tomcat 6?

I want to use Struts 2 framework.

like image 946
Enrique Avatar asked Oct 14 '09 01:10

Enrique


People also ask

What is URL Rewrite in Apache?

URL rewriting purpose is to change the appearance of the URL to a more user-friendly URL. This modification is called URL rewriting. For example, http://example.com/form.html can be rewritten as http://example.com/form using URL rewriting.

Where do I put rewrite config?

It will use a rewrite. config file containing the rewrite directives, it must be placed in the Host configuration folder.

What is URL rewriting Tool?

URL Rewrite permits Web administrators to easily replace the URLs generated by a Web application in the response HTML with a more user friendly and search engine friendly equivalent. Links can be modified in the HTML markup generated by a Web application behind a reverse proxy.


1 Answers

I've used UrlRewriteFilter as a critical component of a couple of my tomcat-based apps, and have been totally happy with it.

like image 105
Jonathan Feinberg Avatar answered Nov 16 '22 02:11

Jonathan Feinberg