Expand my Community achievements bar.

Who Me Too'd this topic

Avatar

Level 2

Hi Guys,

 

We have a requirement to remove all .html extensions in website for best SEO practices, we have removed all .html with help of dispatcher rules and corresponding mapping.

 

But we have an issue with redirect pages which adding .html by default.

For e.g.  https://mywebsite.com/redirectPage/ (redirect page to home)

is redirect to https://mywebsite.com/home.html 

 

We have tried mapping package for internal redirection but havent worked. Please find below mapping package rules.

 

sling:match = ".+/home.html"

sling:redirect = "/home/"

 

But it is not working as expected (going to blank package even though we have correct internalmapping for /home/)

please let us know if i have done anything wrong above or give me a way to rectify this issue.(Note: let me know if we can do it without help of dispatcher rules)

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

6.5
Who Me Too'd this topic