The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Intermediate & Advanced SEO
    4. How bad is a trailing slash?

    How bad is a trailing slash?

    Intermediate & Advanced SEO
    2 2 165
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Tylerj
      Tylerj last edited by

      I am working in Magento 2 which has all sorts of difficulties.

      My product page is example.com/testproduct the canonical is the same.

      But in the sitemap it is example.com/testproduct/

      In a perfect world I would get rid of the trailing slash but can't because of this issue- https://magento.stackexchange.com/questions/205337/unique-constraint-violation-found-when-remove-suffix-html-magento-2-2-0

      The trailing slash will 301 redirect properly.

      Is it an issue having the sitemap urls different with the trailing slash?

      1 Reply Last reply Reply Quote 0
      • GastonRiera
        GastonRiera last edited by

        Hi Tyler,

        This is a minor issue, but still an issue. You should be consistent in your sitemap file as on what you want google to index.

        There will be no penalty or whatever in an SEO perspective. What can suffer is crawling in your site due to:
        1- GoogleBot has a "limited" time/resources for each site, wasting time in redirections may cause that part of your site not being crawled
        2- If many redirections are held, GoogleBot might leave instead of having more time/resources for that crawl. There has been said that GoogleBot gives up in the 5th hop (video with matt cuts explaining it)

        Hope it helps.
        Best luck
        GR

        1 Reply Last reply Reply Quote 1
        • 1 / 1
        • First post
          Last post
        • Removing the Trailing Slash in Magento
          effectdigital
          effectdigital
          0
          2
          565

        • Should I switch from trailing slash to no trailing slash?
          ThompsonPaul
          ThompsonPaul
          0
          6
          1.6k

        • Should you automatically resolve URLs with extra trailing slashes added by accident?
          andy.bigbangthemes
          andy.bigbangthemes
          0
          2
          42

        • Duplicate content on URL trailing slash
          BlueprintMarketing
          BlueprintMarketing
          1
          6
          7.4k

        • Site Redesign Inconsistent Trailing Slash Issue
          davebuts
          davebuts
          0
          2
          113

        • Does having a trailing slash make a url different than the same url without the trailing slash?
          webestate
          webestate
          0
          4
          2.2k

        • Forced Trailing Slash on PHP Pages In Google!
          Webpresence
          Webpresence
          0
          5
          435

        • Trailing Slash: Lost in Redirection?
          kwoolf
          kwoolf
          0
          5
          899

        Get started with Moz Pro!

        Unlock the power of advanced SEO tools and data-driven insights.

        Start my free trial
        Products
        • Moz Pro
        • Moz Local
        • Moz API
        • Moz Data
        • STAT
        • Product Updates
        Moz Solutions
        • SMB Solutions
        • Agency Solutions
        • Enterprise Solutions
        • Digital Marketers
        Free SEO Tools
        • Domain Authority Checker
        • Link Explorer
        • Keyword Explorer
        • Competitive Research
        • Brand Authority Checker
        • Local Citation Checker
        • MozBar Extension
        • MozCast
        Resources
        • Blog
        • SEO Learning Center
        • Help Hub
        • Beginner's Guide to SEO
        • How-to Guides
        • Moz Academy
        • API Docs
        About Moz
        • About
        • Team
        • Careers
        • Contact
        Why Moz
        • Case Studies
        • Testimonials
        Get Involved
        • Become an Affiliate
        • MozCon
        • Webinars
        • Practical Marketer Series
        • MozPod
        Connect with us

        Contact the Help team

        Join our newsletter
        Moz logo
        © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
        • Accessibility
        • Terms of Use
        • Privacy