Sorry Scott, its a directory, there is no servlet mapping. It has a index.jsp file which is served.
Full URL is http://www.somehost.com/en/index.jsp The browser just shows it as http://www.somehost.com/en/ -jk On Wed, Sep 15, 2010 at 5:57 PM, Scott Ferguson <f...@caucho.com> wrote: > jkowall wrote: > > I'm seeing a strange behavior where resin is redirecting (302) a url > > when you leave off the final / in the URL: > > > > example: > > if I hit www.somehost.com/en <http://www.somehost.com/en> I get this > > output: > > In this situation, what is "en"? Specifically, is there a directory > corresponding to it? Or a en/index.jsp or some servlet mapping? > > The original reason for the redirect was things like en/index.jsp where > relative links wouldn't be handled by the browser correctly if we > immediately dispatch to en/index.jsp. > > -- Scott > > > > > > GET http://www.somehost.com/en > > 302 Found to http://www.somehost.com/en/ > > > > GET http://www.somehost.com/en/ > > 200 OK (text/html) > > > > If I hit www.somehost.com/en/ <http://www.somehost.com/en/> I get this > > output: > > > > GET http://www.qa.mfg.com/en/ > > 200 OK (text/html) > > > > The main reason this is a problem, is when search engines index you > > they will keep a 302 and index it differently versus a 301. It would > > actually be better if we could change it to a 301, then google,etc > > wouldn't consider www.somehost.com/en <http://www.somehost.com/en> a > > different URL than www.somehost.com/en/ <http://www.somehost.com/en/> > > which currently happens when someone links to the directory without > > the final / > > > > Any thoughts? > > > > -jk > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > resin-interest mailing list > > resin-interest@caucho.com > > http://maillist.caucho.com/mailman/listinfo/resin-interest > > > > > > _______________________________________________ > resin-interest mailing list > resin-interest@caucho.com > http://maillist.caucho.com/mailman/listinfo/resin-interest >
_______________________________________________ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest