URL redirect
Hello all,
How to to redirect a website having a url:
www.mywebsite.com/content/en/home.html to just www.mywebsite.com/en
I don't think vanity url will suffice.
Any idea how to proceed ?
Hello all,
How to to redirect a website having a url:
www.mywebsite.com/content/en/home.html to just www.mywebsite.com/en
I don't think vanity url will suffice.
Any idea how to proceed ?
Hi
Please have a look at this community article:-
Link:- http://aem.matelli.org/url-mapping-and-deep-linking/
//
sling:Mapping Redirects: AEM’s most powerful URL-manipulation feature, a set of redirect components, is often overlooked because application servers don’t traditionally have this ability. But CQ’s built in Vanity URL support, namespace mangling, and internal tools all make use of this ability. A custom application can too, for instance, by remapping all /content project to /content/myproject
In CRX, navigate to the /etc/map node.
Open (or create) the http node of type sling:Folder
Create a node called content of type sling:Mapping
Add a property called sling:match and give it a value of localhost.4502/content/
Add a property called sling:internalRedirect and give it a value of /content/myproject
Now navigate to http://localhost:4502/content/mypage.html. The browser will display the URL that was entered, but internally AEM will be referencing the mapped directory structure.
Reference Link:- https://sling.apache.org/documentation/the-sling-engine/mappings-for-resource-resolution.html#root-level-mappings
I hope this will help you.
Thanks and Regards
Kautuk Sahni
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.