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. Do index.php extensions count as duplicate content on Joomla sites?

    Do index.php extensions count as duplicate content on Joomla sites?

    Technical SEO Issues
    3 3 2.1k
    • 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.
    • valetseo
      valetseo last edited by

      When i run my error report, i see 2 duplicate pages, but both are the main domain and then the /index.php extension.  how do i fix this?  does it  really count as duplicate content?

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

        No worries. This can easily be fixed with a rel="canonical" tag. Just place this:

        in the head section of the /index.php page. Here is a good resource:

        http://support.google.com/webmasters/bin/answer.py?hl=en&answer=139394

        If you posted your website URL I'd be happy to help you identify other canonical issues.

        1 Reply Last reply Reply Quote 1
        • AdeLewis
          AdeLewis last edited by

          Hey Linda,

          They most definitely do count as duplicate. I build several Joomla websites a month for clients and whilst you can use a rel="canonical" link such as suggested by Todd, I prefer to remove the issue by replacing the standard joomla .htaccess file content with the following content:-

          Options +FollowSymLinks

          RewriteEngine On

          prevents people from accessing anything with phpMyAdmin

          RewriteRule phpMyAdmin - [F]

          Remove index.php or index.htm/html from URL requests

          RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(([^/]+/)*)index.(php|html?)\ HTTP/
          RewriteCond %{REQUEST_URI} !^/administrator
          RewriteRule ^([^/]+/)*index.(html?|php)$ http://www.domain.com/$1 [R=301,L]

          force canonical www if request is for non-www or has port number etc

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

          redirect 301 /home.html http://www.domain.com/

          RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|%3D) [OR]
          RewriteCond %{QUERY_STRING} base64_encode[^(]([^)]) [OR]
          RewriteCond %{QUERY_STRING} (<|%3C)([^s]s)+cript.(>|%3E) [NC,OR]
          RewriteCond %{QUERY_STRING} GLOBALS(=|[|%[0-9A-Z]{0,2}) [OR]
          RewriteCond %{QUERY_STRING} _REQUEST(=|[|%[0-9A-Z]{0,2})
          RewriteRule .* index.php [F]

          RewriteBase /
          RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
          RewriteCond %{REQUEST_URI} !^/index.php
          RewriteCond %{REQUEST_URI} (/[^.]|.(php|html?|feed|pdf|raw))$ [NC]
          RewriteCond %{REQUEST_FILENAME} !-f
          RewriteCond %{REQUEST_FILENAME} !-d
          RewriteRule .
          index.php [L]

          Before replacing your .htaccess code with the above make sure you take a back-up copy of the original code just in case. Replace www.domain.com with your domain.

          Hope this helps.
          Ade.

          1 Reply Last reply Reply Quote 2
          • 1 / 1
          • First post
            Last post
          • Search Console Indexed Page Count vs Site:Search Operator page count
            benesmartin
            benesmartin
            0
            2
            78

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

          • Mobile site content and main site content
            GPainter
            GPainter
            0
            10
            102

          • Joomla: content accesible through all kinds of other links >> duplicate content?!
            crackingmedia
            crackingmedia
            0
            2
            825

          • Duplicate content /index.php/ issues
            ThompsonPaul
            ThompsonPaul
            1
            5
            867

          • Modx revolution- getting around index.php vs. root duplicate content issue?
            G2W
            G2W
            0
            5
            517

          • Duplicate content problem from an index.php file
            ocelot
            ocelot
            0
            6
            3.3k

          • Duplicate content issue index.html vs non index.html
            KaneJamison
            KaneJamison
            0
            10
            1.7k

          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