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. Moz Pro
    4. Duplicate page content on / and index.php

    Duplicate page content on / and index.php

    Moz Pro
    2 2 611
    • 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.
    • search_shop
      search_shop last edited by

      Hi I am new to SEOmoz and in the crawl diagnostics for one of my clients it came back duplicate content on the homepage www.myclient.co.uk and on the www.myclient.co.uk/index.php which is obviously the same page.

      I understand that the key is to do a 301 redirect from the index to /, however how will I know that this will not just create an ever ending loop on the server?

      From your experience how is the best way to tackle this crawl error? Also is there a specific question that I need to ask the server?

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

        If you are using an Apache server, you should be able to redirect the index.php file to the root by editing the .htaccess file with the following lines -

        RewriteCond %{THE_REQUEST} ^./index.php RewriteRule ^(.)index.php$ http://www.mydomain.com/$1 [R=301,L]

        If you are using WordPress, there are several plugins available which will allow you to configure this automatically so you don't have to mess with the .htaccess file manually.

        1 Reply Last reply Reply Quote 4
        • 1 / 1
        • First post
          Last post
        • Duplicate Page Content, Indexing and Rel Canonical Just DOUBLED! Need Advice to Fix
          katemorris
          katemorris
          0
          3
          174

        • Aren't domain.com/page and domain.com/page/ the same thing?
          G2W
          G2W
          0
          8
          171

        • "Issue: Duplicate Page Content " in Crawl Diagnostics - but sample pages are not related to page indicated with duplicate content
          cbielich
          cbielich
          0
          2
          345

        • How to remove /index.html that causes duplicated content
          Matt-Williamson
          Matt-Williamson
          0
          4
          507

        • 404 Page/Content Duplicates & its "Warning"
          Cyrus-Shepard
          Cyrus-Shepard
          0
          4
          714

        • Duplicate Page Title and Duplicate page content ??
          Keszi
          Keszi
          0
          3
          652

        • Why aren't canonical tags reducing duplicate page title/content?
          RyanKent
          RyanKent
          1
          9
          1.8k

        • Why are these pages considered duplicate page content?
          AlanMosley
          AlanMosley
          0
          4
          556

        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