Hi Kris,
I found that I couldn't use mod_rewrite infront of mod_jk on apache.
It seems that mod_jk handles matching requests before mod_rewrite,
therefore a transformed request never gets the chance to be processed
by mod_jk again and a 404 is always thrown.
To get around this, I wrote my own (very simple) web application filter
which you can download and use as you wish:
http://www.axonbirch.com/java/SearchEngineFriendlyFilter.java
This means that the java application does the rewriting. It's not
terribly efficient, I'm sure many improvements could be made and if you
have some feedback or improvements to make, they would be gratefully
received.
Kind Regards,
Chris.
On 15 Dec 2005, at 10:37, Kristian Rink wrote:
Hi all;
currently I'm into deploying a small jsp/servlet based application
which
more or less utilizes a dispatcher servlet to provide .jsp-based
content. For that, I'm into using URLs like
http://foobar:8080/Site?path=home/users
to, in example, show the site section "home -> users". For now, I'd
like
to do URL rewriting in order to provide users with an URL like
http://foobar:8080/home/users or maybe
http://foobar:8080/Site/home/users
to see the same content. My initial idea was to use apache, mod_jk and
mod_rewrite to do right this, but don't feel too good about that idea
because sooner or later the site URL will also have to carry around a
session ID and in that I am afraid that URL rewriting will get me into
trouble. So, my question: What is the best way of doing URL rewriting
in
such a situation? Does tomcat provide any ways of achieving what I
want?
TIA and bye,
Kris
--
Kristian Rink * http://zimmer428.net * jab: [EMAIL PROTECTED]
icq: 48874445 * fon: ++49 176 2447 2771
"Be yourself the kind of change you want to see in this world."
(Gandhi)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]