Skip to main content
December 20, 2022
Beantwortet

Sling mapping for multi website

  • December 20, 2022
  • 2 Antworten
  • 874 Ansichten

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

Dieses Thema wurde für Antworten geschlossen.
Beste Antwort von 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 Antworten

TarunKumar
Community Advisor
TarunKumarCommunity AdvisorAntwort
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