tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "neal" <nealcab...@yahoo.com>
Subject RE: Tomcat - a search engine liability?!?!
Date Thu, 12 Dec 2002 03:19:24 GMT
Thanks for the suggestions, I'll definitely have to look into them.

For someone unfamiliar with these things those mod_rewrite or filters do you
think it would be easier to just throw in the towel on using tomcat for http
serving and move Apache in front of it, or is it easier to write one of
these solutions?

Also, jsut to clarify - these mappings filters and rewrites would all occur
prior to initial output and result in a completely normal, well-formed
server header for a requested document?   I mean, http status code would be
200, the extention and content-type could appear to be html, etc? Would
there be any clue to a search engine  that any of these things aren't what
they appear to be?

Thanks.
Neal

-----Original Message-----
From: Craig R. McClanahan [mailto:craigmcc@apache.org]
Sent: Wednesday, December 11, 2002 7:10 PM
To: Tomcat Users List
Subject: RE: Tomcat - a search engine liability?!?!




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>


--
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