The Moz Q&A Forum

    • Forum
    • Questions
    • 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 Forum
    2. Categories
    3. Moz Tools
    4. Moz Pro
    5. Domain.com and domain.com/index.html duplicate content in reports even with rewrite on

    Moz Q&A is closed.

    After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.

    Domain.com and domain.com/index.html duplicate content in reports even with rewrite on

    Moz Pro
    8 5 2.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.
    • anthonytjm
      anthonytjm last edited by

      I have a site that was recently hit by the Google penguin update and dropped a page back. When running the site through seomoz tools, I keep getting duplicate content in the reports for domain.com and domain.com/index.html, even though I have a 301 rewrite condition. When I test the site, domain.com/index.html redirects to domain.com for all directories and root. I don't understand how my index page can still get flagged as duplicate content.

      I also have a redirect from domain.com to www.domain.com.

      Is there anything else I need to do or add to my htaccess file?

      Appreciate any clarification on this.

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

        Hello Anthony,

        Saw this still open.

        If your index.html "Rewrite" code is accurate, could the issue be WWW, i.e. http://www.domain.com vs. http://domain.com?

        RewriteCond %{HTTP_HOST} ^domain.com
        RewriteRule ^(.*)$ http://www.domain.com/$1 [R=permanent,L]

        1 Reply Last reply Reply Quote 0
        • Dr-Pete
          Dr-Pete last edited by

          I checked one of your campaigns, and it does seem like the 301-redirect is working properly. I'm also not seeing any evidence of links to the "index.htm" version or other issues. I don't see evidence of both version sin Google's index. Not sure exactly what's going on here, but I'll run it by the support team. I don't think you have cause for concern.

          1 Reply Last reply Reply Quote 1
          • anthonytjm
            anthonytjm @irvingw last edited by

            Thank you for the feedback and help.

            I have looked up url removal in webmaster tools and it states that the page must be removed from the site. If I remove index.html I wont have a home page. Am I understanding you correctly? Heres what google states on url removal.

            To remove a page or image, you must do one of the following:

            • Make sure the content is no longer live on the web. Requests for the page must return an HTTP 404 (not found) or 410 status code.
            • Block the content using a robots.txt file.
            • Block the content using a meta noindex tag.

            Please clarify when you get a moment.

            I would have thought the htaccess 301 redirects from www.domain.com/index.html to www.domain.com would be enough.

            Thank you in advance.

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

              a) request removal of the /index.html URL in webmaster tools and it will go away in Google's index quickly.

              b) make sure that when you link to your homepage on your site you are not linking to the /index.html URL -  I bet you are somewhere  😉  do a sitewide search in dreamweaver to find all instances and do a global replace.

              anthonytjm 1 Reply Last reply Reply Quote 0
              • AJPro
                AJPro @anthonytjm last edited by

                It could take a little time. I did some redirects myself earlier this year, but the old pages are still in Google's index.

                Maybe someone else can confirm that it can take a little time before the old pages are dropped from Google's index?

                1 Reply Last reply Reply Quote 0
                • anthonytjm
                  anthonytjm @AJPro last edited by

                  HTTP/1.1 301 Moved Permanently => Date => Tue, 08 May 2012 13:44:26 GMT Server => Apache/2.0.52 (CentOS) Location => http://www.domain.com/ Content-Length => 330 Connection => close Content-Type => text/html; charset=iso-8859-1

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

                    Did you verify with a tool like http://www.webconfs.com/http-header-check.php that you get a 301 redirect?

                    anthonytjm 1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post

                    Got a burning SEO question?

                    Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.


                    Start my free trial


                    Explore more categories

                    • Moz Tools

                      Chat with the community about the Moz tools.

                      Getting Started
                      Moz Pro
                      Moz Local
                      Moz Bar
                      API
                      What's New

                    • SEO Tactics

                      Discuss the SEO process with fellow marketers

                      Content Development
                      Competitive Research
                      Keyword Research
                      Link Building
                      On-Page Optimization
                      Technical SEO
                      Reporting & Analytics
                      Intermediate & Advanced SEO
                      Image & Video Optimization
                      International SEO
                      Local SEO

                    • Community

                      Discuss industry events, jobs, and news!

                      Moz Blog
                      Moz News
                      Industry News
                      Jobs and Opportunities
                      SEO Learn Center
                      Whiteboard Friday

                    • Digital Marketing

                      Chat about tactics outside of SEO

                      Affiliate Marketing
                      Branding
                      Conversion Rate Optimization
                      Web Design
                      Paid Search Marketing
                      Social Media

                    • Research & Trends

                      Dive into research and trends in the search industry.

                      SERP Trends
                      Search Behavior
                      Algorithm Updates
                      White Hat / Black Hat SEO
                      Other SEO Tools

                    • Support

                      Connect on product support and feature requests.

                      Product Support
                      Feature Requests
                      Participate in User Research

                    • See all categories

                    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

                    Looks like your connection to Moz was lost, please wait while we try to reconnect.