Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

Avatar

Level 2

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

 

 

 

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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/ 

 

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

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/