You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Felix Röthenbacher <de...@felix.shacknet.nu> on 2005/02/16 01:03:35 UTC

Redirect with slash appended

Hi

I have the problem that every time I access a servlet with a
URL that is equal to a servlet's directory, Tomcat
redirects me to an URL with a slash appended. E.g. I want
to access "/resources", and Tomcat redirects me to "/resources/",
which my servlet does not match. It expects to match to "/resources".
Is it possible to disable such redirects? I'm using Tomcat 5.5.7.
Maybe it has something to do with the default servlet?

Thanks

Felix

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


Re: Redirect with slash appended

Posted by Mark Thomas <ma...@apache.org>.
This is by design. See 
http://issues.apache.org/bugzilla/show_bug.cgi?id=32424 for an explanation.

Mark

Felix Röthenbacher wrote:
> Hi
> 
> I have the problem that every time I access a servlet with a
> URL that is equal to a servlet's directory, Tomcat
> redirects me to an URL with a slash appended. E.g. I want
> to access "/resources", and Tomcat redirects me to "/resources/",
> which my servlet does not match. It expects to match to "/resources".
> Is it possible to disable such redirects? I'm using Tomcat 5.5.7.
> Maybe it has something to do with the default servlet?
> 
> Thanks
> 
> Felix
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 
> 


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