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. /index.php/ page

    /index.php/ page

    Technical SEO Issues
    7 4 756
    • 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.
    • ciznerguy
      ciznerguy last edited by

      I was wondering if my system creates this page www my domain com/index.php/

      is it better to block with robot.txt or just canonize?

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

        Your question is not really clear. If you're building your website using a program like FrontPage, it creates a "home page" usually using index.htm or index.html.  index.php is not typically "created" unless you're using a program like Wordpress or some other PHP based site that uses it for the home page.  That's the part of the question I'm unclear on as to what you mean.

        As for robots.txt versus canonical, it depends on what you're trying to do. If you want the search engines to ignore it, use robots.txt to block it. Using a canonical tag simply tells search engines which page you prefer for it to use if there are multiple similar pages.

        For instance, if you have 5 widget pages and they all have the same content, you would use a canonical tag to tell Google which one of those pages you would like for them to use to avoid all 5 pages potentially being seen as duplicate content.  It knows those pages are there, but you tell it which one to consider when it's crawling your site. That's a simplified explanation, but essentially how it's used.

        So if you want Google to ignore the index.php page, a canonical tag is not the option you want.

        ciznerguy 1 Reply Last reply Reply Quote 0
        • NakulGoyal
          NakulGoyal last edited by

          I would just canonical it to the right URL and for every other URL that might be generated in multiple ways. You should definitely not do a robots.txt block.

          1 Reply Last reply Reply Quote 1
          • ciznerguy
            ciznerguy @GeorgiaSEOServices last edited by

            Thanks Chris

            the site is a magento site.

            and the page was cached by Google. my goal is to transfer any importance that Google sees in the page to the home page.

            I hope the question is clearer

            GeorgiaSEOServices 2 Replies Last reply Reply Quote 0
            • irvingw
              irvingw last edited by

              it sounds like your arre talkng about the homepage having a duplicate page with index.php. If that is the case then 301 redirect it to the real homepage URL.

              You can request the URL to be removed from Googles index in your WMT account too which is a good idea because as it sits now you have two pages that are identical indexed in google.

              1 Reply Last reply Reply Quote 0
              • GeorgiaSEOServices
                GeorgiaSEOServices @ciznerguy last edited by

                Yes, then it that case, you would want to use a canonical tag indicating which page Google should focus on. If the page is defunct or not used anymore, then do as Irving suggests and 301 it.  Good luck.

                1 Reply Last reply Reply Quote 0
                • GeorgiaSEOServices
                  GeorgiaSEOServices @ciznerguy last edited by

                  Yes, then it that case, you would want to use a canonical tag indicating which page Google should focus on. If the page is defunct or not used anymore, then do as Irving suggests and 301 it.  Good luck.

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  • How to resolve warning of pages with redirect chain when its your http:// to https://www.
                    VelocityWebsites
                    VelocityWebsites
                    0
                    3
                    186

                  • Sudden Indexation of "Index of /wp-content/uploads/"
                    Tom3_15
                    Tom3_15
                    0
                    4
                    192

                  • Home Page Being Indexed / Referral URLs /
                    Andrew-SEO
                    Andrew-SEO
                    0
                    2
                    44

                  • Correct linking to the /index of a site and subfolders: what's the best practice? link to: domain.com/ or domain.com/index.html ?
                    CleverPhD
                    CleverPhD
                    0
                    4
                    245

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

                  • Home Page .index.htm and .com Duplicate Page Content/Title
                    TOMMarketingLtd.
                    TOMMarketingLtd.
                    0
                    6
                    1.6k

                  • Duplicate index.php/webpage pages on website. Help needed!
                    MatthewBarby
                    MatthewBarby
                    0
                    4
                    691

                  • I have a site that has both http:// and https:// versions indexed, e.g. https://www.homepage.com/ and http://www.homepage.com/. How do I de-index the https// versions without losing the link juice that is going to the https://homepage.com/ pages?
                    fthead9
                    fthead9
                    0
                    3
                    729

                  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