We are using AEM 6.2 and I am curious how others are handling the rewriting of urls to avoid duplicate content and a bunch of 404s. This question is primarily related to SEO.
How are you handling these scenarios?
www.yoursite.com/en/whatever/ -> whatever.html
www.yoursite.com/en/whatever -> whatever.html
www.yoursite.com/en/whatever.html/ ->whatever.html
Basically we want to rewrite, not redirect, all of these to whatever.html. I looked at other sites using AEM and some do not address these at all, some allow the duplicate pages to work, some throw a 403 or 404 if they do not exactly go to whatever.html and some handle some of these scenarios using a 301 redirect.
I am curious what everyone is doing and if they are doing it through server rewrite rules or in AEM.
thanks
Mark