NOTE: This article is an INTERNAL article and is not visible to customers, currently. Please only link this article in internal comments, but not public comments.
Issue
- When access the URL with a slash in the end, the page shows the same content as the page without slash, Google indexes both pages, notices they are the same and may reduce the ranking.
Environment
- All environments
Resolution
- Unfortunately, currently there isn't a feature OOTB to redirect to the main page or generate a 404 error when accessing the URL with the slash.
-
According to some analysis, this shouldn't have a penalization for SEO since since we use
rel="canonical"
.- See PTR-4566
- In any case, if there exists any possibility of penalty Liferay will try to avoid it. That's why this related story has been created: LPD-17944.
Additional Information
- Marking as internal as per this Slack thread
- More details in this Google articles