Configure Sling Mappings for Resource Resolution in Adobe Experience Manager(AEM) — Deep Dive
This tutorial explains the complete details on configuring sling mapping for resource resolution in Adobe Experience Manager(AEM).
Resource mapping is used to define the content mapping and redirects in AEM. This will helps us to define user-friendly shortened URLs to the website.
I have enabled two sample domains www.example1.com and www.example2.com pointing to /content/wknd/us/en and /content/wknd/ca/en nodes respectively(sample wknd website nodes).
The flow is as below
The user request for www.example1.com and www.example2.com, the Apache redirects the user to the domain-specific landing pages and also redirects the user to the shortened URL(hide/content/wknd/<country code> if user access the page with full content path). The dispatcher passes through(PT) the shortened content URL’s to publisher by appending the full content path /content/wknd/<country code>. This will help us to manage the dispatcher cache and cache invalidation optimally.
As the first step, let us enable the virtual host configurations for www.example1.com and www.example2.com in Apache(Dispatcher)
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot…