Hi all,
I am working on removing the .html extension from the url, Can anyone guide on this in detail, how I can acheive this.
Thanks in advance.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
The approach can vary depending of your requirements, please check this thread were there is a good discussion about the topic with couple approaches: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/extensionless-every-url-to...
Hope this help
If you are using a java file then please do below part:
if (url.contains(".html")) {
url=url.replace(".html" , "");
}
This will solve your problem.
Hi @KannaKarthi
Please check https://medium.com/tech-learnings/how-to-implement-extension-less-urls-in-aem-a3136c71b232
Hi,
The approach can vary depending of your requirements, please check this thread were there is a good discussion about the topic with couple approaches: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/extensionless-every-url-to...
Hope this help
You can do do this either from dispatcher using rewrite rules or using etc mapping
Please refer the URL below
https://www.aemguide.in/2019/07/remove-html-extension-at-dispatcher.html?m=0
Views
Likes
Replies