I have found the same link in google but i am not clear about setting the path map configuration.In the below-mentioned steps,I am not able to identify Apache Sling JCR Resource Resolver section(step-2) in system/console/configMgr.
I am using AEM 6.2 SP1+CFP1,is there anything changed?What's the equivalent configuration.
To create a URL map between a /content URL in your repository and a shortened URL:
- Go to the Configuration tab of the Adobe CQ5 Web Console (http://localhost:4503/system/console/configMgr).
- Go to the Apache Sling JCR Resource Resolver section.
- Click the + sign in the URL Mappings section.
- In the new text box, enter the resolved URL and the vanity URL.
- Click Save.
- Finally, follow the steps to verify your vanity URL, goingforgold.
In AEM 6.2 the configuration is called "Apache Sling Resource Resolver Factory". So search for that name instead.
Be aware there are other ways to define vanity urls as well. You can add nodes at /etc/map (the location is also configured in the configuration you are looking for) referenced here Apache Sling - Mappings for Resource Resolution. Another way is to integrate with your Apache server outlined here: https://blog.rackspace.com/enabling-vanity-urls-with-adobe-experience-manager
In addition to managing Vanity URL will be thru rewrites rules within AEM, which is to configure your /etc/map.
Here are the steps:
- configuration tree located below /etc/map
- create a new folder: type sling:Mapping
- define sling:match – partial regular expression which is used instead of the node’s name to match the incoming request
- define sling:redirect or sling:internalRedirect depending on the type of redirect
Normally it's recommended combine this with dispatcher configuration to reduce amount of hit aem publish instance but for sure you will require infra or architect with good experience for that
Daycare has confirmed this is a bug and they will fix in upcoming CFP release.
As intermittent fix we have added sling:vanityURL has mix in type and problem is resolved.