Root Mapping Configuration in Adobe CQ5

In Adobe AEM, As we see that if we hit http://<host>:<port>/ by default it is redirected to
Author: /project.html
Publish: /content.html

Did you think about that How it works?

In this post, I will explain how it works and how we can change these URLs.

If you go to http://<host>:<port>/system/console/configMgr and search for the Day CQ Root Mapping, you would be seen like these screen:

RootMappingAuthor:


RootMappingPublish:


In author instance it is straight forward but if you see publish instance, though its configured as ‘/content.html’ but its redirected to /content/geometrixx/en. This reason is being the 2 properties which is set for the node ‘/content’.

sling:resourceType as sling:redirect and
sling:target as /geohome

/geohome is set as the vanityPath for the geometixx-outdoors site,which is turn has a redirectTarget set to /content/geometrixx/en.

How to Change ?

Most likely, we would want to change the root mapping from /geohome to our own application in the publish instance and the same can be done by 2 types which are mention below:

1. /Content :

We know, in publish instance root mapping is set to /content.html. So go to the content node and change the URL for the property sling:target to your own application content node and save.


2. ConfigMgr :

Login to the config manager console directly either in author or publish which you want to change, search for the Day CQ Root Mapping and change the ‘Target Path‘ to the page which you want to show and click on save. Next time when you access instance, it should redirect to the configured path.


Be Happy