JCR Resource Resolver mappings with regex(removing parts of url in a certain way)
Trying to configure JCR Resource resolve in a certain way:
Given requirement:
Where article has path /content/company/en/articles/some/article should be resolved as /some/article
Tried to use this Url Mappings rule (resource.resolver.mapping):
/content/company/en/articles/(.*):/$1
This works in the system console and places like sitemap.xml where ResourceResolver.map is invoked.
However, when trying to open the actual page, following error is returned:
No resource found
Cannot serve request to /some/article.html on this server
What is wrong with current configuration ?
Thanks,
Peter
