AEM | Not able to remove .html extension for URLs having Siffix | Community
Skip to main content
selvendranr9588
Level 2
May 10, 2022
Solved

AEM | Not able to remove .html extension for URLs having Siffix

  • May 10, 2022
  • 1 reply
  • 9354 views

Hi,

I have configured the OOTB Service to remove the .html extension from the URL 

Day CQ Link Checker Transformer 

Selected the checkbox "Strip HTML Extension"

 

It works fine for the URL that ends with .html for not for the URL that have suffix 

Example:

Working :

http://localhost:4502/content/project/pages/demo.print.html rewritten to http://localhost:4502/content/project/pages/demo.print

 

Not working:

http://localhost:4502/content/project/pages/demo.print.html/a/b/c

is not rewritten to http://localhost:4502/content/project/pages/demo.print/a/b/c

 

** print is the selector

** /a/b/c is the suffix

 

 

 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Anmol_Bhardwaj

For this you would need to write an outbound rewrite rule in dispatcher and/or publisher.

 

  • In publisher it will be done by adding rule in /etc/mapping or in ResourceResolver Map Entries.

 

https://techcookies.in/2017/03/27/basic-url-rewrite-rules-hiding-the-content-root-from-url/ 

 

1 reply

Anmol_Bhardwaj
Community Advisor
Anmol_BhardwajCommunity AdvisorAccepted solution
Community Advisor
May 10, 2022

For this you would need to write an outbound rewrite rule in dispatcher and/or publisher.

 

  • In publisher it will be done by adding rule in /etc/mapping or in ResourceResolver Map Entries.

 

https://techcookies.in/2017/03/27/basic-url-rewrite-rules-hiding-the-content-root-from-url/