Vanity URL resolution | Community
Skip to main content
Singaiah_Chintalapudi
New Participant
May 31, 2016
Solved

Vanity URL resolution

  • May 31, 2016
  • 2 replies
  • 1114 views

Hi,

I am using vanity URLs and I want to throw an exception if that url is not found. When I request the vanity URL which is not there in AEM, it is simply showing the blank page. 

How does AEM identifies the AEM internal URL based vanity URL? Sing looks for: sling:vanityPath property in the content nodes?

Please help.

Thanks.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ogill

Hi,

resource mapping is used for vanity URL's[0], see more details here [1]

Regards,

Opkar

[0] https://docs.adobe.com/docs/en/aem/6-2/deploy/configuring/resource-mapping.html

[1]http://www.aemmastery.com/2015/03/15/aem-osgi-service-dive-resource-resolver-factory/

2 replies

ogillAccepted solution
Employee
May 31, 2016
smacdonald2008
New Participant
May 31, 2016

Look at the AEM 2015 2nd place winning application (for the annual AEM code contest): 

https://helpx.adobe.com/experience-manager/using/vanitypath.html

You can build a tool to manage these URLS.  You can install and extend the app if you want.