Vanity URLs with extension problem
Hi, all.
For the requirement I am currently working on we do need to have vanity URLs that include extensions, so we can maintain the same address from the current site when migration to AEM is complete (ex.: the vanity URL should be /foo/bar/foobar.aspx). But we could verify while testing that vanity URLs with extensions are not handled the way we expected, as the extension is meaningful to AEM to resolve how to render a given content.
Do you have any recommendations to this case? I'd like not to use a solution on the Apache leve (eg.: use mod-rewrite for removing the extension from the URL)?
The exception I get when I set the vanity URL "foo/bar/foobar.aspx" to a page is displayed below:
Cannot serve request to /foo/bar/foobar.aspx in org.apache.sling.servlets.get.DefaultGetServlet
Request Progress:
0 (2014-01-14 13:48:43) TIMER_START{Request Processing}
0 (2014-01-14 13:48:43) COMMENT timer_end format is {<elapsed msec>,<timer name>} <optional message>
0 (2014-01-14 13:48:43) LOG Method=GET, PathInfo=/foo/bar/foobar.aspx
0 (2014-01-14 13:48:43) TIMER_START{ResourceResolution}
0 (2014-01-14 13:48:43) TIMER_END{0,ResourceResolution} URI=/foo/bar/foobar.aspx resolves to Resource=JcrNodeResource, type=cq:Page, superType=null, path=/content/geometrixx-media/en
0 (2014-01-14 13:48:43) LOG Resource Path Info: SlingRequestPathInfo: path='/content/geometrixx-media/en', selectorString='null', extension='aspx', suffix='null'
0 (2014-01-14 13:48:43) TIMER_START{ServletResolution}
Regards,
Rafael
