[opencms-dev] Trailing slash required for directory problem

Joe Desbonnet jdesbonnet at gmail.com
Thu Sep 28 13:29:32 CEST 2006


I've filed this in Bugzilla as Bug #1241.

Joe.

On 9/28/06, Jonathan Woods <jonathan.woods at scintillance.com> wrote:
> I have a mod_rewrite-based site, with code based loosely on Sebastian
> Himberger's solution, and I don't have a problem.  At least,
> folder-resolving URLs without a trailing slash still reach the right
> content, though I notice now that no redirect happens.  Clearly this isn't
> great, and I guess it only works because all URLs returned by my site are
> absolute.
>
> Jon
>
> -----Original Message-----
> From: opencms-dev-bounces at opencms.org
> [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Christian Steinert
> Sent: 28 September 2006 10:15
> To: joe at galway.net; The OpenCms mailing list
> Subject: Re: [opencms-dev] Trailing slash required for directory problem
>
> Joe Desbonnet schrieb:
> > I notice from my logs I'm getting some 404s for URLs that correspond
> > to directories (but with the tailing slash missing).
> >
> > Say you have http://www.mysite.com/about/index.html
> >
> > In Apache you would expect the following URLs to work:
> > 1.  http://www.mysite.com/about/index.html
> > 2.  http://www.mysite.com/about/
> > 3.  http://www.mysite.com/about   (via automatic redirect to
> > http://www.mysite.com/about/)
> >
> > However scenario #3 does not work in the standard OpenCms + Apache
> > configuration. It just results in a 404 error.
> Yes, I definitely have the same behavior. This has not been a problem for
> me, but Opencms just doesn't seem to recognize this.
>
> Possible workarounds that come to my mind are:
> - use static export and serve the exported files through apache
> - implement a 404 - handler that checks if the "missing" resource is
> actually a folder and redirect to the folder's index page or to the folder
> URL with an appended slash.
>
> And of course, if this causes trouble for you, you could report this as a
> bug.
>
> christian
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>



More information about the opencms-dev mailing list