tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 55220] Tomcat adding trailing slash when directory exists
Date Sun, 04 May 2014 23:33:41 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=55220

--- Comment #6 from Deelo <dwayne.dsouza@gmail.com> ---
I have the same problem.
I am using Tuckey rewriting engine to map my URLs:

    <rule>
    <from>^/?([a-z-/]+)$</from>
        <to>/$1.xhtml</to>
    </rule>

So if a user looks at mysite.com/test it gets redirected internally to
mysite.com/test.xhtml.

However if there is directory called test, Tomcat redirects the user to
mysite.com/test/

This is causing issues when I have query paramaters.

e.g.  mysite.com/test?x=123
Tomcat redirects to mysite.com/test/?x=123

I'm not sure why Tomcat is adding the trailing slash here.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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


Mime
View raw message