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. On-Page / Site Optimization
    4. Slash at the end of a url

    Slash at the end of a url

    On-Page / Site Optimization
    5 2 352
    • 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.
    • corwin
      corwin last edited by

      I keep reading contradicting information, so I figured I'll ask here.

      What's the best practice for slash '/' at the end of a URL?

      Should it be idealchooser.com/search/laptop/ or idealchooser.com/search/laptop (no trailing slash)?

      The options:

      1. Accept both equally

      2. Accept 1 and redirect the other with 301

      3. Accept 1 and treat the other as a wrong URL returning 404

      Which would be the best for SEO?

      Thank you.

      1 Reply Last reply Reply Quote 0
      • Matt-Williamson
        Matt-Williamson last edited by

        I would look at going down the canonical route - have a look at canonicalization guide from SEOMoz here - http://www.seomoz.org/learn-seo/canonicalization

        I would add a canonical tag pointing at your preferred format url and I would also do a 301 redirect between the two. Using both won't cause issues and obviously your link juice will keep flowing.

        It specifically talks about trailing slashes and redirecting from none trailing to trailing towards the end of the article.

        corwin 1 Reply Last reply Reply Quote 0
        • corwin
          corwin @Matt-Williamson last edited by

          Thank you Matt,

          From the article: "The takeaway here is that whenever possible, it is better to internally link to the version with the backslash."

          Just to be clear, does this mean that all my internal links should not contain a trailing slash and I should make sure links with a trailing slash are internally redirected to the same page?

          If I remember correctly, when I did this SEOmoz marked it as duplicate content, but Google seemed to be fine with it.

          I know I'm being very picky here, I just want to make sure I don't loose ranking because of something that seems so minor.

          Thanks.

          Matt-Williamson corwin 2 Replies Last reply Reply Quote 0
          • Matt-Williamson
            Matt-Williamson @corwin last edited by

            Just to be clear that when you decide which version you want to be your main url structure you need to make sure that all your internal should point at the preferred format.

            So if you are putting preference on the trailing slash as in your 301 redirect is from none trailing slash to trailing slash then your internal link structure should match.

            1 Reply Last reply Reply Quote 1
            • corwin
              corwin @corwin last edited by

              Thank you very much Matt.

              Now I get it 🙂

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              • Duplicate URL errors when URL's are unique
                DirkC
                DirkC
                0
                2
                96

              • SEO, 301s & backslashes at end of URL
                MSpencer
                MSpencer
                1
                5
                319

              • How do you handle URLs with slashes?
                benji1
                benji1
                0
                2
                72

              • Is tracking code added to the end of a URL considered duplicate content
                TowerMarketing
                TowerMarketing
                0
                6
                160

              • Short URL's vs Optimised URL's
                MozAddict
                MozAddict
                0
                3
                68

              • Our urls for adwords are slightly different from current urls presented on site (weused htaccess to help create shorter urls). How important is it that the adwords url match the sitemap url for keywords on those pages?
                LesleyPaone
                LesleyPaone
                0
                2
                134

              • Trailing slash on URLs
                webseoservices
                webseoservices
                0
                7
                679

              • Does it matter if your URL ends in .net or .com?
                SparkplugDigital
                SparkplugDigital
                0
                4
                1.9k

              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