[opencms-dev] Howto have a tree structure but server flat urls

Yves Glodt yg at mind.lu
Wed Apr 20 11:47:08 CEST 2011


Maybe urlrewrite can be of help:

http://code.google.com/p/urlrewritefilter/

I used it already in conjunction with OpenCms, e.g. to remove the /opencms
prefix:

http://opencms-wiki.org/Removing_the_/opencms/opencms_prefix_without_using_Apache

On 20 April 2011 11:10, Achim Westermann <Achim.Westermann at gmx.de> wrote:

> Hi Assaf,
>
> just a high level thought:
>
> Your requirement:
>
> - will create some mapping from URLS to files within the OpenCms VFS which
> might be unknown by editors: They might be confused where to find the page
> in OpenCms for an URL where they see something they have to change.
>
> - will cost you time to implement, educate editors and fix bugs.
>
> - might cause bugs.
>
>
> Is it an option to put all those files flat into OpenCms? With that
> solution:
>
> - you don't have to write code.
> - the mapping between URL and OpenCms VFS stays 1-1.
>
>
> I'd work on the given requirement.
>
> cheers,
>
> Achim
>
>
> -------- Original-Nachricht --------
> > Datum: Wed, 20 Apr 2011 00:10:16 -0700 (PDT)
> > Von: Assaf <assafn at yahoo.com>
> > An: opencms-dev at opencms.org
> > Betreff: [opencms-dev] Howto have a tree structure but server flat urls
>
> > Hi,
> >
> > I would like to have a tree/ folder structure for my content but would
> > like all
> > pages to be served as a flat URL. E.g.
> >
> > the page located at /cat1/subcat2/tulips.html would be served at:
> >
> > http://example.com/tulips.html
> >
> > and the page located at /cat5/roses.html would be served at:
> >
> > http://example.com/roses.html
> >
> > I would need all links to be automatically calculated and ensure that
> > there are
> > no conflicts.
> >
> > Is this possible with opencms?
> >
> > Thanks,
> >
> > Assaf
> >
> > _______________________________________________
> > 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
>
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20110420/f1a85d7c/attachment.htm>


More information about the opencms-dev mailing list