You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/08/05 17:37:46 UTC

DO NOT REPLY [Bug 11470] New: - URL enging in / is redirected, not forwarded, to index.jsp

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11470>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11470

URL enging in / is redirected, not forwarded, to index.jsp

           Summary: URL enging in / is redirected, not forwarded, to
                    index.jsp
           Product: Tomcat 4
           Version: 4.1.8
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: ian779@darwinsys.com


Any URL that ends in / gets redirected to the default page such as index.jsp.
This makes index.jsp part of the client-visible URL string, which includes
it in bookmarks. This makes it harder to change the internal structure
of your site (rename pages, etc.). AFAIK every other web server on the net, 
including Apache HTTPD and Tomcat 3, does the equivalent of a "forward", 
that is, they simply display the page when given a URL ending in /.
<br/>
Note that I am not complaining about the forward from e.g., http://a.com to
http://a.com/ - done when people are "too lazy" :-) to type the trailing / -
as I realize this is necessary for relative links to work
correctly (several people I've spoken to before filing this report have
mentioned this).

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>