Hmmm, I think I might have fixed it...but I don't get how. I've added error-pages to my web.xml which catches 404 and 500 errors and returns an appropriate error page (via http://code.google.com/appengine/docs/java/config/webxml.html#Error_Handlers). After I fixed and deployed that, the previous URLs that didn't work (i.e. www.examples.com/about) all of a sudden started to redirect properly (i.e. to www.examples.com/about/). Weird. I'm not sure exactly what happened, but this seems to be a non-issue now. Anyways, false alarm...I guess :p
Thanks Charles On Mar 30, 6:53 pm, Charles <[email protected]> wrote: > Hi all, > > This is a pretty simple problem, but I'm not sure how to approach it > with GAE. The problem is this. I have an about page set up as an > index.jsp page under the directory /about/. So, when I access... > > www.example.com/about/index.jspwww.example.com/about/ > > ...it works just fine. BUT, when I access... > > www.example.com/about(notice, no trailing slash) > > ...it fails. I know why. It's interpreting it as a file and not a > directory. But, with traditional webservers like Apache, if it finds > no file, it will look for it as a directory and return the proper > page. An extra round-trip, sure, but it's definitely desirable. The > problem is, GAE doesn't seem to do that. The only solutions I've > found online were to do URL-rewriting, or create redirect servlets, or > dedicated servlets for certain pages. This seems excessive, and I'm > hoping I'm missing something. Anyone have any suggestions? > > Thanks in advance > > Charles -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
