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. Trailing slash and rel="canonical"

    Trailing slash and rel="canonical"

    Intermediate & Advanced SEO
    8 2 6.8k
    • 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.
    • BethA
      BethA last edited by

      Our website is in a directory format:

      http://www.website.com/website.asp

      Our homepage display URL is http://www.website.com which currently matches our to eliminate the possibility of duplicate content.

      However, I noticed that in the SERPs, google displays the homepage with a trailing slash http://www.website.com/

      My question: should I change the rel="canonical" to have a trailing slash?  I noticed one of our competitors uses the trailing slash in their rel="canonical"

      Do potential benefits outweigh the risks?

      I can PM further information if necessary.

      Thanks for the assistance in advance...

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

        Hi Marty, there is really no difference between root domain URLs with or without trailing slashes.

        Note, however, that this is not true for absolute URLs: http://www.example.com/page is not the same as http://www.example.com/page/. For absolute URLs that are not the root domain, you need to be pretty explicit about whether or not it has a trailing slash. Many content management systems (e.g. WordPress) will let you choose to have trailing slashes or not.

        At this point, I don't think you need to do anything with your homepage canonical URL since it is the same as adding a trailing slash.

        Hope this helps!

        BethA 1 Reply Last reply Reply Quote 1
        • BethA
          BethA @GeorgeAndrews last edited by

          Hello George, thank you for your helpful response.  While I knew it was the case for absolute URLs and subdirectories, I was unsure whether it also pertained to the root domain.  The link provided a helpful explanation, although SEO's have been, "reasonably sure that just about all search engines will be normalizing all those URLs to be the same," in the past only to have those certainties change unexpectedly.  That being said, I think the forum made a good point in saying,"search engines generally don't want to deliberately add duplicates to their index."

          With our canonical URL set to www.domain.com , do you believe there will be any loss of link juice with backlinks using both the domain.com and domain.com/ , or will it just be a better indicator to the search engines that both URLs are one in the same?  Also do you think it matters that the domain root with the trailing slash is the one that shows up in the Google SERPs? --- to me that seems to indicate that Google prefers the root domain in directories to have a trailing slash

          GeorgeAndrews BethA 5 Replies Last reply Reply Quote 1
          • GeorgeAndrews
            GeorgeAndrews @BethA last edited by

            I don't think you will lose any link juice.

            I also don't think it matters which URL you use for domain root. That said, it would matter if you were using http://www.domain.com versus http://domain.com. Otherwise, I don't think you need to worry.

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

              Yes, I realized my typo after I posted, thanks.  We do use the www version consistently, so no problem there.  That being said, what's your take on the www vs non-www preferred domain structure, I've noticed some popular site (mashable comes to mind) going away from the www preferred domain -- just like to hear differing opinions if/when you have the time.

              Thanks,

              Marty

              1 Reply Last reply Reply Quote 0
              • BethA
                BethA @BethA last edited by

                Yes, I realized my typo after I posted, thanks.  We do use the www version consistently, so no problem there.  That being said, what's your take on the www vs non-www preferred domain structure, I've noticed some popular site (mashable comes to mind) going away from the www preferred domain -- just like to hear differing opinions if/when you have the time.

                Thanks,

                Marty

                1 Reply Last reply Reply Quote 0
                • GeorgeAndrews
                  GeorgeAndrews @BethA last edited by

                  It's really up to you and your marketing team I suppose. Maybe ask which sounds better (e.g. "for the best jambalaya in town go to www.jambalaya.com!" vs. "for the best jambalaya in town go to jambalaya.com!").

                  I prefer www.example.com myself.

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

                    Thanks for the help George and participating in the discussion.  I like the ease of the syntax involved with the non-www version, but I think people's and browsers natural inclination towards the www version makes it the most practical at this juncture.  Perhaps if you're building a new site the less traditional non-www might be used, but like yourself, I also prefer the www.

                    Thanks,

                    Marty

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post
                    • Rel="canonical" and rel="alternate" both necessary?
                      Dr-Pete
                      Dr-Pete
                      0
                      10
                      9.3k

                    • What is the difference between link rel="canonical" and meta name="canonical"?
                      Ideas-Money-Art
                      Ideas-Money-Art
                      0
                      3
                      1.3k

                    • What does this kind of rel="canonical" mean?
                      AlanBleiweiss
                      AlanBleiweiss
                      0
                      3
                      154

                    • How use Rel="canonical" for our Website
                      Dr-Pete
                      Dr-Pete
                      0
                      6
                      159

                    • Bad use of the Rel="canonical" tag
                      Brian-H
                      Brian-H
                      0
                      4
                      554

                    • Meta name="canonical" content="uRL" usage instead of link rel
                      Ideas-Money-Art
                      Ideas-Money-Art
                      0
                      10
                      4.7k

                    • To "Rel canon" or not to "Rel canon" that is the question
                      Dr-Pete
                      Dr-Pete
                      0
                      10
                      728

                    • <rel canonical="">and Query Strings</rel>
                      RyanKent
                      RyanKent
                      0
                      2
                      1.6k

                    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