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. What could be the cause of this duplicate content error?

    What could be the cause of this duplicate content error?

    Technical SEO Issues
    4 2 272
    • 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.
    • ScottMcPherson
      ScottMcPherson last edited by

      I only have one index.htm and I'm seeing a duplicate content error. What could be causing this?

      IUJvfZE.png

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

        Hey Scott,

        3 things you should do:

        1. Determine whether you want to include the index.htm or not. It doesn't really matter which one you choose as long as you're consistent, but pick one and stick to that linking structure from now on. If your site has a lot of backlinks to the homepage, see which variation has the most backlinks (usually it's the one without the index).

        2. Include a canonical tag in the section of your homepage, if you go with the sans-index version, use the following code:

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

        1. If you are familiar with the htaccess file, add the following code to it.  This will redirect all index.htm files to the root directory:

        RewriteEngine On

        RewriteBase /

        RewriteRule ^index.htm$ / [NC,R,L]

        Hope that helps!

        ScottMcPherson 1 Reply Last reply Reply Quote 2
        • ScottMcPherson
          ScottMcPherson @TakeshiYoung last edited by

          That helps a lot. I already added this for a 301 redirect a couple of days ago.

          RewriteEngine on

          rewritecond %{http_host} ^suncoastlaw.com [nc]

          rewriterule ^(.*)$ http://www.suncoastlaw.com/$1 [r=301,nc]

          Should I just add your last two lines to the bottom of this .htaccess?

          TakeshiYoung 1 Reply Last reply Reply Quote 0
          • TakeshiYoung
            TakeshiYoung @ScottMcPherson last edited by

            Yes, no need to repeat the "RewriteEngine on" line.  It's also a good idea to include the canonical tag on the homepage, just in case.

            1 Reply Last reply Reply Quote 1
            • 1 / 1
            • First post
              Last post
            • Duplicate content and 404 errors
              TwoOctobers
              TwoOctobers
              0
              4
              291

            • When is Duplicate Content Duplicate Content
              AMHC
              AMHC
              0
              6
              169

            • Database driven content producing false duplicate content errors
              nickcargill
              nickcargill
              0
              5
              171

            • Fix duplicate content caused by tags
              okuma
              okuma
              0
              3
              228

            • Duplicate content error - same URL
              KeriMorgret
              KeriMorgret
              1
              6
              439

            • Duplicate Content Errors
              Banknotes
              Banknotes
              0
              16
              997

            • Crawl Errors and Duplicate Content
              RyanKent
              RyanKent
              0
              9
              732

            • Duplicate content issues caused by our CMS
              jsturgeon
              jsturgeon
              0
              3
              948

            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