File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes using mod_rewrite and mod_jk Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "using mod_rewrite and mod_jk " Watch "using mod_rewrite and mod_jk " New topic

using mod_rewrite and mod_jk

doug parker
Ranch Hand

Joined: Oct 26, 2004
Posts: 30
i have a java web application on a apache2 + mod_jk1.2 + tomcat5.5 combo. I want a friendly url for my webapp search. I have that correctly done with mod_rewite - i see it in the log. issue is, it is trying to serve the file from htdocs instead of letting mod_jk handle it.

the only way i have gotten it to work is to use the [R] flag for my rewrite rule. i dont want that because the user sees that convoluted query string url instead of the friendly url. also tried [PT] but mod_jk didnt pick up the request.

does mod_jk and mod_rewrite work together?

I see the is a servlet filter for url rewriting. i hate to go down that route!!!
I agree. Here's the link:
subject: using mod_rewrite and mod_jk
It's not a secret anymore!