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. On-Page / Site Optimization
    4. Index.php + external site added to end of URL

    Index.php + external site added to end of URL

    On-Page / Site Optimization
    3 2 1.6k
    • 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.
    • drkevinhogan
      drkevinhogan last edited by

      Good day, I have a domain http://www.ecofriendlylink.com.  I am trying to resolve the Crawl Diagnostic errors on it.   I have several  Duplicate Page Content errors.

      Example 1:

      (The domain happynewyou is not mine, some Comments from them have been placed on my site.    Ecoshop.php is a page on my site).

      URL:    http://www.ecofriendlylink.com

      Duplicate Page Content:  http://www.ecofriendlylink.com/www./happynewyou.com/ecoshop.php

      Referrer:   None.

      Example 2:

      URL:    http://ecofriendlylink.com/index.php

      Duplicate Page Content:  http://www.ecofriendlylink.com/index.php http://www.ecofriendlylink.com/www./happynewyou.com/index.php

      Referrer:   http://ecofriendlylink.com/

      Example 3:  is a different problem, but still a Dup Page Error.

      URL:  http://ecofriendlylink.com/water.php

      Duplicate Page Content:  http://www.ecofriendlylink.com/water.php

      Referrer:  http://ecofriendlylink.com/

      water.php is a page on my main domain.  The www version and the non-www version, if this a problem and something I need to overcome?

      So please can you advise what I need to do to get rid of this strange external domain name + index.php (as per examples 1 + 2), and explain what I'm doing wrong with Ex 3.

      Thank you!

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

        Example 1: Your 404 page is not defined, so whenever an incorrect link is typed, the server returns a 200 OK and it just loads the home page. Somewhere on your site there is a bad link, so when the crawl followed it and returned  a 200 OK , it recorded it as a real page and since it simply loads your home page, it is a duplicate. You need to define a 404 page in htaccess so this does not happen.

        Example 2 + 3: the crawler is counting the following pages as your home page:

        http://ecofriendlylink.com/

        http://ecofriendlylink.com/index.php

        http://www.ecofriendlylink.com/

        http://wwwecofriendlylink.com/index.php

        Thats because your home page can legitimately be loaded all 4 ways. This is a little different than Example 1 since these variations are normal. I suggest adding a non-www to www redirect in htaccess, as well as a redirect that forces a removal of the index.php.

        However - before you do that! You should:

        a) check to see where a majority of your external links point to (use www.opensiteexplorer.com). If the majority of them point to the non-www version then you may consider redirecting www to non-www.  Also, check your internal links. If you redirect www to non-www or if you remove the index.php with a redirect, make sure that all internal links pointing home point to the proper URL. (so if you did a non-www to www redirect, and removed the index.php with a redirect, make sure all of your internal links point to http://www.ecofriendlylink.com/)

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

          Thank you very much for your prompt response!

          I shall Google defining the 404 page in .htaccess, I'm sure I'll have these errors fixed in no time, and that makes sense re the home page.

          Thank you!

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • To avoid the duplicate content issue I have created new urls for that specific site I am posting to and redirecting that url to the original on my site. Is this the right way to do it?
            0
            1
            24

          • Why Is Google Indexing The .com.au site in USA searches, and not the .com site?
            Clockie
            Clockie
            1
            14
            283

          • 301 Redirect to external site
            RameshNair
            RameshNair
            0
            5
            1.2k

          • Indexed/Submitted URLS vs Total Indexed
            BlueprintMarketing
            BlueprintMarketing
            0
            2
            248

          • Linking Out To External Sites
            artdivision
            artdivision
            0
            9
            131

          • Our urls for adwords are slightly different from current urls presented on site (weused htaccess to help create shorter urls). How important is it that the adwords url match the sitemap url for keywords on those pages?
            LesleyPaone
            LesleyPaone
            0
            2
            134

          • ON SITE SEARCH INDEXED BY GOOGLE - no follow or no index
            ShaMenz
            ShaMenz
            0
            4
            770

          • Does it matter if a rel = "canonical" element is added to the beginning or the end of a URL?
            Luke22
            Luke22
            0
            4
            974

          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