Re: redirecting old context uris when moving context [SOLVED]

2007-10-16 Thread Daniel M Garland
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

redirecting old context uris when moving context

2007-10-15 Thread Daniel M Garland
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

Re: redirecting old context uris when moving context

2007-10-15 Thread Moran Ben-David
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

Re: redirecting old context uris when moving context

2007-10-15 Thread Johnny Kewl
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

Re: redirecting old context uris when moving context

2007-10-15 Thread Christopher Schultz
-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

Re: redirecting old context uris when moving context

2007-10-15 Thread Moran Ben-David
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

Re: redirecting old context uris when moving context

2007-10-15 Thread Hassan Schroeder
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]

Re: redirecting old context uris when moving context

2007-10-15 Thread Nikil Pandey
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