Maybe urlrewrite can be of help:<br><br><a href="http://code.google.com/p/urlrewritefilter/">http://code.google.com/p/urlrewritefilter/</a><br><br>I used it already in conjunction with OpenCms, e.g. to remove the /opencms prefix:<br>

<br><a href="http://opencms-wiki.org/Removing_the_/opencms/opencms_prefix_without_using_Apache">http://opencms-wiki.org/Removing_the_/opencms/opencms_prefix_without_using_Apache</a><br><br><div class="gmail_quote">On 20 April 2011 11:10, Achim Westermann <span dir="ltr"><<a href="mailto:Achim.Westermann@gmx.de">Achim.Westermann@gmx.de</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Assaf,<br>
<br>
just a high level thought:<br>
<br>
Your requirement:<br>
<br>
- 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.<br>


<br>
- will cost you time to implement, educate editors and fix bugs.<br>
<br>
- might cause bugs.<br>
<br>
<br>
Is it an option to put all those files flat into OpenCms? With that solution:<br>
<br>
- you don't have to write code.<br>
- the mapping between URL and OpenCms VFS stays 1-1.<br>
<br>
<br>
I'd work on the given requirement.<br>
<br>
cheers,<br>
<br>
Achim<br>
<br>
<br>
-------- Original-Nachricht --------<br>
> Datum: Wed, 20 Apr 2011 00:10:16 -0700 (PDT)<br>
> Von: Assaf <<a href="mailto:assafn@yahoo.com">assafn@yahoo.com</a>><br>
> An: <a href="mailto:opencms-dev@opencms.org">opencms-dev@opencms.org</a><br>
> Betreff: [opencms-dev] Howto have a tree structure but server flat urls<br>
<div><div></div><div class="h5"><br>
> Hi,<br>
><br>
> I would like to have a tree/ folder structure for my content but would<br>
> like all<br>
> pages to be served as a flat URL. E.g.<br>
><br>
> the page located at /cat1/subcat2/tulips.html would be served at:<br>
><br>
> <a href="http://example.com/tulips.html" target="_blank">http://example.com/tulips.html</a><br>
><br>
> and the page located at /cat5/roses.html would be served at:<br>
><br>
> <a href="http://example.com/roses.html" target="_blank">http://example.com/roses.html</a><br>
><br>
> I would need all links to be automatically calculated and ensure that<br>
> there are<br>
> no conflicts.<br>
><br>
> Is this possible with opencms?<br>
><br>
> Thanks,<br>
><br>
> Assaf<br>
><br>
> _______________________________________________<br>
> This mail is sent to you from the opencms-dev mailing list<br>
> To change your list options, or to unsubscribe from the list, please visit<br>
> <a href="http://lists.opencms.org/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/mailman/listinfo/opencms-dev</a><br>
<br>
_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/mailman/listinfo/opencms-dev</a><br>
</div></div></blockquote></div><br>