Neal,

I told you that solution in the context of your avoiding a redirect (302),
not in the context of standalone Tomcat.  mod_rewrite is an Apache module.

http://www.mail-archive.com/tomcat-dev%40jakarta.apache.org/msg38750.html is
the start of a thread on patching Tomcat to do a forward instead of a
redirect.  Matt Parker's latest patch (not the one in the message) was
approved, so long as he keeps the default to the current behavior for now.
For Tomcat 5, Remy Maucherat plans to include this functionality in the
mapper.

        --- Noel

P.S.  If someone needs something from me, direct e-mail might be useful if I
don't reply to the list promptly.  I'm swamped, and sometimes don't have
time to get to the tomcat-user folder.  This was my first (and probably
only) pass today, and I only checked this thread because RewriteRules is one
of my fun topics.

-----Original Message-----
From: neal [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 08, 2003 4:51
To: Tomcat Users List
Subject: RewriteRules and Standalone Tomcat


What exaclty is a RewriteRule and how is it used with Standalone Tomcat? Do
I define my RewriteRules somewhere in server.xml or web.xml?

A couple of months ago, Noel told me how I could get Tomcat to show the
content of the default welcome page without redirecting (http 302) to the
file, using a RewriteRule.  I took notes from that email and set it aside
only to realize when I returned ... that I have no idea what to do with this
info!  And of course no info is available (that I could find) online or in
the Tomcat manual explaining this.  :(

Could someone please explain how this RewriteRule would be integrated into
Tomcat:

  RewriteRule  ^/$  /index.html   [L]

Thanks!
Neal


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to