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. Duplicate Content Resolution Suggestion?

    Duplicate Content Resolution Suggestion?

    Technical SEO Issues
    11 5 1.3k
    • 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.
    • sferrino
      sferrino last edited by

      Use a rel='canonical' and use the non index.html for the href;

      also don't link to the index.html from anywhere.

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

        or 301 redirect in your .htaccess and then you don't have to worry about link issues etc

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

          I think in that particular situation I would use 301 as there really isn't a separate use for the /index.html page

          sferrino 1 Reply Last reply Reply Quote 0
          • sferrino
            sferrino @RikkiD22 last edited by

            If the index.html is their home page that shows up when just doing the domain: http://www.mydomain.com/

            then what would you 301 to? Are you assuming that it is a site that is using a index.php, index.htm, index.asp, etc.?

            PlasticCards stated that there is a duplicate content, therefore the index.html page actually exists and should use a canonical.

            RikkiD22 sferrino 3 Replies Last reply Reply Quote 0
            • RikkiD22
              RikkiD22 @sferrino last edited by

              I was under the impression that www.mydomain.com/ and www.mydomain.com/index.html were both indexing but are the same page

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

                Yes, by the original posting your impression is correct and are the same page, but you can't 301 an index.html page to the domain where the index.html is the page that shows by default.

                You could use an htaccess RewriteCond, but could be a little overkill for this situation, where adding a canonical will solve it.

                1 Reply Last reply Reply Quote 0
                • RikkiD22
                  RikkiD22 @sferrino last edited by

                  Completely agree.

                  I think II may have been slightly confused by thinking the default for www.mydomain.com/ was not iindex.html

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

                    Im a KISS guy, duplicate content pages should just be handled with a rewrite, then they don't  appear in any of your stats, attract links, spread your like/tweet numbers over multiple pages, if you are using xml files to keep tabs on your indexing etc and give you a better idea of whats going on on your site

                    Also, you have to take into account Facebook likes, page tweets, +1s etc - does rel canonical work on the social graph data?

                    rel canonical sort orders etc but if its a pure duplicate, then 301

                    "Dont link to page X on your site" isnt really a good solution in my eyes, too much room for error

                    sferrino 1 Reply Last reply Reply Quote 0
                    • sferrino
                      sferrino @firstconversion last edited by

                      Stephen I agree with the KISS method. Using an htaccess RewriteCond is not the simplest solution for someone who does not know htaccess syntax. In an effort to fully answer this, here is the typical code we are referring to:

                      Options +FollowSymLinks
                      RewriteEngine on
                      RewriteCond %{HTTP_HOST} ^yoursite.com
                      RewriteRule (.*) http://www.yoursite.com/$1 [R=301,L]
                      RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index.html\ HTTP/
                      RewriteRule ^index.html$ http://www.yoursite.com/ [R=301,L]

                      The first 2 lines are typical commands to Follow Symbolic links, and make sure that the rewrite engine is in the on state.

                      The first RewriteCond looks at the host, and if it is not the www. version the RewriteRule will redirect the visitor to the http://www. version of your site.

                      The second RewriteCond looks at whether this is an index.html file, if it is, it will the RewriteRule will 301 redirect them to the version with out the index.html, just yoursite.com/

                      webtarget 1 Reply Last reply Reply Quote 1
                      • webtarget
                        webtarget @sferrino last edited by

                        Does having the line:

                        DirectoryIndex index.html

                        Have any use in addition to the lines you posted?

                        Thanks.

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • First post
                          Last post
                        • Duplicate Content - Different URLs and Content on each
                          HiveDigitalInc
                          HiveDigitalInc
                          0
                          6
                          152

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

                        • Content relaunch without content duplication
                          TomRayner
                          TomRayner
                          0
                          2
                          68

                        • Duplicate content vs. less content
                          SurfingNosara
                          SurfingNosara
                          0
                          6
                          289

                        • Duplicate Content Vs No Content
                          MoosaHemani
                          MoosaHemani
                          0
                          7
                          404

                        • How to avoid duplicate content penalty when our content is posted on other sites too ?
                          Personnel_Concept
                          Personnel_Concept
                          0
                          8
                          460

                        • Duplicate content issues, I am running into challenges and am looking for suggestions for solutions. Please help.
                          Dr-Pete
                          Dr-Pete
                          0
                          5
                          272

                        • Forget Duplicate Content, What to do With Very Similar Content?
                          johnshearer
                          johnshearer
                          0
                          2
                          568

                        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

                        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