I think I found a bug with Magnolia's [url=https://nexus.magnolia-cms.com/service/local/repositories/magnolia.public.releases/archive/info/magnolia/magnolia-core/5.4.1/magnolia-core-5.4.1-javadoc.jar/!/info/magnolia/cms/beans/config/HostBasedRegexpVirtualURIMapping.html]HostBasedRegexpVirtualURIMapping[/url]. I am using Magnolia 5.4.1 CE.
I have the following pages: [img]http://i.stack.imgur.com/qgE5J.png[/img] and the following mapping configured: [img]http://i.stack.imgur.com/S2Yu2.png[/img] My intention is that a request to: [code]http://www.area1.local:8888 /magnoliaAuthor/subarea/home[/code] gets forwarded to the page: /[b]area1[/b]/subarea/home while a request to: [code]http://www.area2.local:8888/magnoliaAuthor/subarea/home[/code] gets forwarded to the page: /[b]area2[/b]/subarea/home [b]However, it does not work, the forwarding does not take place.[/b] ---------- Interestingly, the following cases work though: [b]Alternative 1:[/b] I change the `fromURI` to `/subarea/(.*).html` like this: [img]http://i.stack.imgur.com/Cvgjd.png[/img] and then, a reques to [code]http://www.area1.local:8888/magnoliaAuthor/subarea/home.html[/code] gets forwarded to the page: /[b]area1[/b]/subarea/home However, I do not want to use the ".html" in the url. ---------- [b]Alternative 2:[/b] Second option that works as well is using the [url=https://nexus.magnolia-cms.com/service/local/repositories/magnolia.public.releases/archive/info/magnolia/magnolia-core/5.4.1/magnolia-core-5.4.1-javadoc.jar/!/info/magnolia/cms/beans/config/HostBasedVirtualURIMapping.html]HostBasedVirtualURIMapping[/url] instead of the HostBasedRegexpVirtualURIMapping, but of course, this approach is a bit tiring to configure for each url. [img]http://i.stack.imgur.com/jCEEd.png[/img] This makes my URI mapping work as intended, but I do not want to configure every possible fromURI but would rather like to use regular expressions. ---------- So my question is, what is wrong with the original configuration of my HostBasedRegexpVirtualURIMapping? Is it a bug? Thanks. -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=814fda36-31f7-4ecd-b15e-5f322548e20d ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <user-list-unsubscr...@magnolia-cms.com> ----------------------------------------------------------------