we are using a slightly old tomcat 3.2.4 with apache 1.3.29 under Gentoo Linux and have a problem rewriting URLs like:
http://www.domain.tld/pages/page--i123b2.jsp;jsessionid=1dfgd234
to
http://www.domain.tld/deploy/page.jsp;jsessionid=1dfgd234?id=123&bs=2
the rewrite rule that should handle this is:
RewriteRule ^/pages/.*--i([0-9-]+)b([0-9-]+).jsp;jsessionid=([0-9a-zA-Z.]+)$ /deploy/page.jsp;jsessionid=$3?id=$1&bs=$2 [PT,L,NE]
If we try this, the rewrite is done correctly but we get the source code of the JSP instead of the rendered JSP. The mod_jk log says:
[Tue Mar 16 14:46:28 2004] [jk_uri_worker_map.c (500)]: Attempting to map URI '/pages/page--i1007b1.jsp'
[Tue Mar 16 14:46:28 2004] [jk_uri_worker_map.c (618)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match
If we take the rewritten URL from the mod_rewrite log and paste it directly into a browser, the page is rendered correctly.
So i think the problem is that the request is first taken by mod_jk before it is passed to mod_rewrite but i don't see any solution to that.
The most strange thing, the same configuration works fine with tomcat 3.2.4 with apache 1.3.28.
any help would be appreciated
Axel Scheel--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
