Sling mapping for multi website | Community
Skip to main content
December 20, 2022
Solved

Sling mapping for multi website

  • December 20, 2022
  • 2 replies
  • 855 views

Hi There,

 

We are facing issue in url shorting(sling mapping) for multiwebsite (http://localhost:4503/content/constellar/language-masters/en/home.html, http://localhost:4503/content/singaporexpo/language-masters/en/home.html). 

 

Can anyone please suggest how can we acheive this.

 

Thanks in Advance

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 TarunKumar

Hi @lavishranosys 

Please try to do it through Apache Sling resource resolver configuration. There you can update the URL mapping attribute to the desired incoming and outgoing path.
Another way is through etc/ map, where you can follow below steps:
1. Create a http (sling:Folder) under /etc/map.
2. Now create a node(sling:Mapping) under /etc/map/http.
3. Create two properties i.e. sling:Match and sling:InternalRedirect.
sling:match : This is the string pattern that we will match with the requested URI.
sling:internalRedirect : This is the string pattern where we want to target or redirect the requested URI.

2 replies

TarunKumar
Community Advisor
TarunKumarCommunity AdvisorAccepted solution
Community Advisor
December 20, 2022

Hi @lavishranosys 

Please try to do it through Apache Sling resource resolver configuration. There you can update the URL mapping attribute to the desired incoming and outgoing path.
Another way is through etc/ map, where you can follow below steps:
1. Create a http (sling:Folder) under /etc/map.
2. Now create a node(sling:Mapping) under /etc/map/http.
3. Create two properties i.e. sling:Match and sling:InternalRedirect.
sling:match : This is the string pattern that we will match with the requested URI.
sling:internalRedirect : This is the string pattern where we want to target or redirect the requested URI.

Mani_kumar_
Community Advisor
Community Advisor
December 20, 2022

Hi @lavishranosys 

Please find the below url for details on mapping, it explains different ways to do it.

https://experienceleague.adobe.com/docs/experience-manager-64/deploying/configuring/resource-mapping.html?lang=en