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. Technical SEO Issues
    4. Trailing slash URLs and canonical links

    Trailing slash URLs and canonical links

    Technical SEO Issues
    3 2 1.5k
    • 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.
    • GhillC
      GhillC last edited by

      Hi,

      I've seen a fair amount of topics speaking about the difference between domain names ending with or without trailing slashes, the impact on crawlers and how it behaves with canonical links.
      However, it sticks to domain names only.
      What about subfolders and pages then? How does it behaves with those?

      Say I've a site structured like this:
      https://www.domain.com
      https://www.domain.com/page1

      And for each of my pages, I've an automatic canonical link ending with a slash.
      Eg. rel="canonical" href="https://www.domain.com/page1/" /> for the above page. SEM Rush flags this as a canonical error. But is it exactly?
      Are all my canonical links wrong because of that slash?

      And as subsidiary question, both domain.com/page1 and domain.com/page1/ are accessible. Is it this a mistake or it doesn't make any difference (I've read that those are considered different pages)?

      Thanks!
      G

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

        Hi G,

        Yes. domain.com/page1 and domain.com/page1**/ **are two different pages in the eyes of Google. But the canonical should fix this issue.... i don't know why SEMrush is flagging them. Maybe you can contact them and just ask?

        For as far as I know, the best solution is to use just one version, and redirect the other one. So all the URL's without a slash, would be redirecting to the url with the slash. In this case, you don't have to change the canonical.

        But be aware: this is what works with my sites. I don´t know all the details about your site.

        So contact SEMrush first and/ore let somebody take a look at your code.

        GhillC 1 Reply Last reply Reply Quote 1
        • GhillC
          GhillC @RobertvanHeerde last edited by

          Hi Robert.

          I will get the code checked and most probably set that redirect rule indeed.
          Many thanks for the advice!

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • Doudle URLs without Canonical link and a change in keyword.: What are the effects on SEO?
            0
            1
            9

          • Clean URL vs. Parameter URL and Using Canonical URL...That's a Mouthfull!
            Roman-Delcarmen
            Roman-Delcarmen
            0
            4
            170

          • Canonical homepage link uses trailing slash while default homepage uses no trailing slash, will this be an issue?
            Deacyde
            Deacyde
            0
            3
            1.3k

          • 301 redirect adding trailing slash to url
            TimHolmes
            TimHolmes
            0
            5
            5.2k

          • OSE says URL redirects to URL with trailing slash but it doesn't.
            rock22
            rock22
            0
            5
            211

          • Do canonical tags pass all of the link juice onto the URL they point to?
            Dr-Pete
            Dr-Pete
            0
            3
            7.5k

          • Trailing Slashes In Url use Canonical Url or 301 Redirect?
            RyanKent
            RyanKent
            0
            7
            2.7k

          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