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. Home page duplicate content...

    Home page duplicate content...

    Technical SEO Issues
    6 3 178
    • 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.
    • LiamMcArthur
      LiamMcArthur last edited by

      Hello all!

      I've just downloaded my first Moz crawl CSV and I noticed that the home page appears twice - one with an appending forward slash at the end:

      http://www.example.com
      http://www.example.com/

      For any of my product and category pages that encounter this problem - it's automatically resolved with a canonical tag. Should I create the same canonical tag for my home page?

      rel="canonical" href="http://www.example.com" />

      1 Reply Last reply Reply Quote 0
      • Andy.Drinkwater
        Andy.Drinkwater last edited by

        Hi Liam,

        To enforce a no trailing slash policy sitewide, you need to do this in the .htaccess file. You do this by adding the following:

        **`RewriteCond%{REQUEST_FILENAME}!-d RewriteRule^(.*)/$ /$1 [L,R=301]`**
        
        If you wanted to enforce a trailing slash policy, you would instead add this.
        
        

        RewriteCond%{REQUEST_FILENAME}!-f RewriteRule^(.*[^/])$ /$1/[L,R=301]

        -Andy

        1 Reply Last reply Reply Quote 2
        • donford
          donford last edited by

          HI Liam,

          Yes you can fix this with a canonical tag or you can do a blanket fix that redirects all "/" urls to the non-slash version with .htaccess.

          This should work in the .htaccess file

          RewriteRule ^(.*)/$ /$1 [L,R=301]

          Hope it helps,

          Don

          1 Reply Last reply Reply Quote 1
          • LiamMcArthur
            LiamMcArthur last edited by

            I didn't want to force the removal or the append of a forward slash site-wide because "most" URL's (around 5,000 of them) don't use forward slash (products, categories, pages etc) - but there's a few pages that are part of the CMS such as account, billing, shopping cart etc that do use an appending forward slash. I think I'm going to give the canonical tag a shot for now - I can't see there being any negatives of using it on the home page to point to itself - it's just I've not heard of many people have to use it on the home page!

            EDIT: Interesting. I viewed the source of http://www.moz.com/? - to see if they were using a home page canonical tag, and they were!

            donford Andy.Drinkwater 2 Replies Last reply Reply Quote 0
            • donford
              donford @LiamMcArthur last edited by

              No problem Liam,

              You can safely canonical your home page to itself. I've had 2 sites setup that way for a few years now.

              Good luck,

              Don

              1 Reply Last reply Reply Quote 1
              • Andy.Drinkwater
                Andy.Drinkwater @LiamMcArthur last edited by

                Hi Liam,

                If you have a mix of slash and no-slash URL's, just make sure that they all forward correctly.

                If you go to www.example.com/product/, does that forward correctly to www.example.com/product, or what does it do?

                If you wish to PM me your URL, I will happily do a quick crawl to make sure there is nothing else that might cause you issues.

                -Andy

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                • Site Crawl -> Duplicate Page Content -> Same pages showing up with duplicates that are not
                  davebuts
                  davebuts
                  0
                  2
                  72

                • Thousands of 404-pages, duplicate content pages, temporary redirect
                  posthumus
                  posthumus
                  0
                  4
                  262

                • Home Page Blog Snippets - Duplicate Content Help?
                  DirkC
                  DirkC
                  0
                  7
                  683

                • Container Page/Content Page Duplicate Content
                  ProductiveEdge
                  ProductiveEdge
                  1
                  4
                  194

                • Home page indexed but not ranking...interior pages with thin content outrank home page??
                  DougHosmer
                  DougHosmer
                  0
                  3
                  294

                • Duplicate Home Page content and title ... Fix with a 301?
                  Dr-Pete
                  Dr-Pete
                  0
                  7
                  2.1k

                • How do I fix duplicate content with the home page?
                  FrontlineMobility
                  FrontlineMobility
                  0
                  2
                  406

                • Duplicate Content Home Page
                  wissamdandan
                  wissamdandan
                  0
                  10
                  1.3k

                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