Hi Team,
I want to hide string from the URL using the sling:mapping. for example
http://www.sample.com/stringtohide/select-a-country.html --> http://www.sample.com/select-a-country.html
http://www.sample.com/stringonetohide/stringtwotohide/privacy.html --> http://www.sample.com/privacy.html
Please help!!
Thanks,
Madhu
Solved! Go to Solution.
Views
Replies
Total Likes
You need to add a few resource resolver mapping rules in the "Apache Sling Resource Resolver" configuration manager in the felix console.
Your requirement will be resolved by using the below rules,
/stringtohide/select-a-country.html>/select-a-country.html
/stringtohide/select-a-country.html</select-a-country.html
/stringonetohide/stringtwotohide/privacy.html>/privacy.html
/stringonetohide/stringtwotohide/privacy.html</privacy.html
The below link helped me understand the mapping better,
http://ilikeorangutans.github.io/2012/11/20/apache-sling-resource-resolver-rule-priority-explained/
Hope this helps
Views
Replies
Total Likes
You need to add a few resource resolver mapping rules in the "Apache Sling Resource Resolver" configuration manager in the felix console.
Your requirement will be resolved by using the below rules,
/stringtohide/select-a-country.html>/select-a-country.html
/stringtohide/select-a-country.html</select-a-country.html
/stringonetohide/stringtwotohide/privacy.html>/privacy.html
/stringonetohide/stringtwotohide/privacy.html</privacy.html
The below link helped me understand the mapping better,
http://ilikeorangutans.github.io/2012/11/20/apache-sling-resource-resolver-rule-priority-explained/
Hope this helps
Views
Replies
Total Likes
See this AEM Doc topic:
http://docs.adobe.com/docs/en/cq/current/deploying/resource_mapping.html
Views
Replies
Total Likes
Maddy737 wrote...
Hi Team,
I want to hide string from the URL using the sling:mapping. for example
http://www.sample.com/stringtohide/select-a-country.html --> http://www.sample.com/select-a-country.html
http://www.sample.com/stringonetohide/stringtwotohide/privacy.html --> http://www.sample.com/privacy.html
Please help!!
Thanks,
Madhu
Configure url mapping at http://host:port/system/console/configMgr/org.apache.sling.jcr.resource.internal.JcrResourceResolver...
Views
Replies
Total Likes
Views
Likes
Replies