Expand my Community achievements bar.

SOLVED

Sling mapping for multi website

Avatar

Level 1

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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.

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

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.