Thanks for the comments, I ended up writing a little servlet filter. I
forgot to mention that I had a filter mapping /* on the root context, so
that /someuri was being caught by the root context first, so I needed a
filter to bypass this. We're also not proxying through apache.
Cheers
Daniel
Hi
I was formerly hosting a web application at
http://somehost/somecontext
which I am now hosting at
http://somehost
so that the context is now ROOT, instead of somecontext.
Is there a way of mapping / redirecting 'old' URI from somecontext to
the ROOT, so that
If you're using apache you could just use mod_rewrite.
moran
On 10/15/07, Daniel M Garland [EMAIL PROTECTED] wrote:
Hi
I was formerly hosting a web application at
http://somehost/somecontext
which I am now hosting at
http://somehost
so that the context is now ROOT, instead of
Garland [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, October 15, 2007 1:52 PM
Subject: redirecting old context uris when moving context
Hi
I was formerly hosting a web application at
http://somehost/somecontext
which I am now hosting at
http://somehost
so
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Moran,
Moran Ben-David wrote:
If you're using apache you could just use mod_rewrite.
It's much simpler and efficient, if you're using httpd, to do:
RedirectMatch /somehost/somecontext(.*) /somehost\1
Why use the complexity of mod_rewrite when
Thanks for that, Chris.
I should come clean.. I'm one of those guys with the 'supersition'
that Tomcat can't handle http as well as apache (both functionally and
performance wise). Glad you're active on the list to dispel these
notions.
moran
On 10/15/07, Christopher Schultz [EMAIL
On 10/15/07, Daniel M Garland [EMAIL PROTECTED] wrote:
Is there a way of mapping / redirecting 'old' URI from somecontext to
the ROOT
See: http://tuckey.org/urlrewrite/
--
Hassan Schroeder [EMAIL PROTECTED]
Message
From: Moran Ben-David [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, October 15, 2007 7:24:42 AM
Subject: Re: redirecting old context uris when moving context
Thanks for that, Chris.
I should come clean.. I'm one of those guys with the 'supersition