Legacy Knowledge Base
Published Jun. 30, 2025

Trailing slashes in URLs can affect SEO ratings

Written By

Lucas Mesquita

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

While we make every effort to ensure this Knowledge Base is accurate, itmay not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with anyfeedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

Before using any information from this article, independently verify itssuitability for your situation and project.

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".
  • 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

Did this article resolve your issue ?

Legacy Knowledge Base