tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject RE: Tomcat - a search engine liability?!?!
Date Thu, 12 Dec 2002 03:10:23 GMT


On Wed, 11 Dec 2002, Noel J. Bergman wrote:

> Date: Wed, 11 Dec 2002 20:15:32 -0500
> From: Noel J. Bergman <noel@devtech.com>
> Reply-To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> Subject: RE: Tomcat - a search engine liability?!?!
>
> Colin,
>
> The difference is that servlet mapping doesn't allow regex replacement,
> whereas mod_rewrite allows:
>
> RewriteRule ^(.*)/mdlx/(.*).html$  $1/$2.mdlx
>
> That is completely off-the-cuff, so it might be syntactically wrong.
>
> If anyone here isn't familar with mod_rewrite, I highly recommend the URL
> Rewriting Guide: http://httpd.apache.org/docs-2.0/misc/rewriteguide.html.
>
> To paraphrase a famous slogan: mod_rewrite -- Don't Run Your Web Server
> Without It.

Or implement the equivalent remapping in a Filter if you'd prefer a
pure-Java solution.  It's pretty easy to do -- and you can even use regexp
replacement if you want :-).

>
> 	--- Noel
>

Craig


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message