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 problem from an index.php file

    Duplicate content problem from an index.php file

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

      Hi

      One of my sites is flagging a duplicate content problem which is affecting the search rankings.

      The duplicate problem is caused by http://www.mydomain.com/index.php which has a page rank of 26

      How can I sort the duplicate content problem, as the main page should just be

      http://www.mydomain.com which has a page rank of 42 and is the stronger page with stronger links etc

      Many Thanks

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

        You need to add a redirect preferably in the .htaccess file so that index.php automatically redirects to the root. This should fix the problem as Google will currently see www.yourdomain.com/index.php and www.yourdomain.com/ and www.yourdomain.com asa 3 separate pages thus why your page authority is different. Google will also think they are duplicate content which is obviously bad!

        This fix will work if mod_rewrite is enabled, but is usually enabled on most apache servers. http://www.askapache.com/htaccess/redirect-index-blog-root.html

        ocelot 1 Reply Last reply Reply Quote 0
        • MoosaHemani
          MoosaHemani last edited by

          Its simple…

          Redirect 301 http://www.mydomain.com/index.php to http://www.mydomain.com and all your link juice value and traffic will move to the index page you want and duplicate content issues will be resolved!

          Hope this helps!

          1 Reply Last reply Reply Quote 0
          • ocelot
            ocelot @MalcolmGibb last edited by

            Thanks Malcolm

            Can it be done using the canonical URL tag or another means rather than the .htaccess file?

            I have access to the .htaccess but I am unsure of what I would need to add in there to solve my problem?

            StevenMapes ocelot 2 Replies Last reply Reply Quote 0
            • StevenMapes
              StevenMapes @ocelot last edited by

              Yes just use the canonical tag on the index.php file to reference the page as the domain, that'll be the easiest way.

              Using an actual redirect could cause you to spiral into a loop

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

                Hi Steven

                On the index.php file I have included

                http://www.mydomain.com />

                Is this correct?

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                • Duplicate content problem
                  canadageorge
                  canadageorge
                  0
                  6
                  112

                • Duplicate content problem
                  PremioOscar
                  PremioOscar
                  0
                  4
                  90

                • Duplicate Content Problem!
                  KillAccountPlease
                  KillAccountPlease
                  0
                  3
                  98

                • Index.php duplicate content
                  KristinaKledzik
                  KristinaKledzik
                  0
                  7
                  1.7k

                • Duplicate content problem?
                  loopyal
                  loopyal
                  0
                  7
                  266

                • Duplicate content by php id,page=... problem
                  Dr-Pete
                  Dr-Pete
                  0
                  6
                  565

                • High number of Duplicate Page titles and Content related to index.php
                  jfeld222
                  jfeld222
                  0
                  8
                  1.3k

                • Different TLD's same content - duplicate content? - And a problem in foreign googles?
                  SEO_ACSI
                  SEO_ACSI
                  0
                  3
                  1.8k

                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