We have a specific requirement where we have to mask /en/us/ from browser URL and replace it with /. For Example: if the link that is requested from server is http://localhost /content/category/en/us/
We do not want to use Vanity URL as that would be page specific and we are looking for a generic solution to this. We were thinking of taking the approach of stripping out /en/us/ at the dispatcher level and then doing the mapping through Sling Resolver configuration or in /etc/map. Is that a good solution? One problem with this approach is that if tomorrow we have to support /de/us/ then how would it be mapped by Sling Resolver to /de/us. What are the available solutions for achieving this?
Solved! Go to Solution.
You need to use combination of mod_rewrite + sling resolver. Can't achieve with single layer. More details refer [0]. When you add new region you can map it again using Sling Resolver. Example at [1].
[0]
https://dev.day.com/docs/en/cq/current/deploying/dispatcher/disp_domains.html
http://www.cognifide.com/blogs/cq/multidomain-cq-mappings-and-apache-configuration/
http://www.citytechinc.com/us/en/blog/2013/04/extensionless-urls-in-adobe-experience-manager.html
[1] http://helpx.adobe.com/experience-manager/kb/HowToMapDomains.html
You need to use combination of mod_rewrite + sling resolver. Can't achieve with single layer. More details refer [0]. When you add new region you can map it again using Sling Resolver. Example at [1].
[0]
https://dev.day.com/docs/en/cq/current/deploying/dispatcher/disp_domains.html
http://www.cognifide.com/blogs/cq/multidomain-cq-mappings-and-apache-configuration/
http://www.citytechinc.com/us/en/blog/2013/04/extensionless-urls-in-adobe-experience-manager.html
[1] http://helpx.adobe.com/experience-manager/kb/HowToMapDomains.html
Sham HC wrote...
You need to use combination of mod_rewrite + sling resolver. Can't achieve with single layer. More details refer [0]. When you add new region you can map it again using Sling Resolver. Example at [1].
[0]
https://dev.day.com/docs/en/cq/current/deploying/dispatcher/disp_domains.html
http://www.cognifide.com/blogs/cq/multidomain-cq-mappings-and-apache-configuration/
http://www.citytechinc.com/us/en/blog/2013/04/extensionless-urls-in-adobe-experience-manager.html
[1] http://helpx.adobe.com/experience-manager/kb/HowToMapDomains.html
Thanks , It was resolved using dispatcher.
Views
Replies
Total Likes
Views
Likes
Replies