undefined
Skip to content
Moz logo Menu open Menu close
  • Products
    • Moz Pro
    • Moz Pro Home
    • Moz Local
    • Moz Local Home
    • STAT
    • Moz API
    • Moz API Home
    • Compare SEO Products
    • Moz Data
  • Free SEO Tools
    • Domain Analysis
    • Keyword Explorer
    • Link Explorer
    • Competitive Research
    • MozBar
    • More Free SEO Tools
  • Learn SEO
    • Beginner's Guide to SEO
    • SEO Learning Center
    • Moz Academy
    • SEO Q&A
    • Webinars, Whitepapers, & Guides
  • Blog
  • Why Moz
    • Agency Solutions
    • Enterprise Solutions
    • Small Business Solutions
    • Case Studies
    • The Moz Story
    • New Releases
  • Log in
  • Log out
  • Products
    • Moz Pro

      Your all-in-one suite of SEO essentials.

    • Moz Local

      Raise your local SEO visibility with complete local SEO management.

    • STAT

      SERP tracking and analytics for enterprise SEO experts.

    • Moz API

      Power your SEO with our index of over 44 trillion links.

    • Compare SEO Products

      See which Moz SEO solution best meets your business needs.

    • Moz Data

      Power your SEO strategy & AI models with custom data solutions.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Free SEO Tools
    • Domain Analysis

      Get top competitive SEO metrics like DA, top pages and more.

    • Keyword Explorer

      Find traffic-driving keywords with our 1.25 billion+ keyword index.

    • Link Explorer

      Explore over 40 trillion links for powerful backlink data.

    • Competitive Research

      Uncover valuable insights on your organic search competitors.

    • MozBar

      See top SEO metrics for free as you browse the web.

    • More Free SEO Tools

      Explore all the free SEO tools Moz has to offer.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Learn SEO
    • Beginner's Guide to SEO

      The #1 most popular introduction to SEO, trusted by millions.

    • SEO Learning Center

      Broaden your knowledge with SEO resources for all skill levels.

    • On-Demand Webinars

      Learn modern SEO best practices from industry experts.

    • How-To Guides

      Step-by-step guides to search success from the authority on SEO.

    • Moz Academy

      Upskill and get certified with on-demand courses & certifications.

    • MozCon

      Save on Early Bird tickets and join us in London or New York City

    Unlock flexible pricing & new endpoints
    Moz API

    Unlock flexible pricing & new endpoints

    Find your plan
  • Blog
  • Why Moz
    • Small Business Solutions

      Uncover insights to make smarter marketing decisions in less time.

    • Agency Solutions

      Earn & keep valuable clients with unparalleled data & insights.

    • Enterprise Solutions

      Gain a competitive edge in the ever-changing world of search.

    • The Moz Story

      Moz was the first & remains the most trusted SEO company.

    • Case Studies

      Explore how Moz drives ROI with a proven track record of success.

    • New Releases

      Get the scoop on the latest and greatest from Moz.

    Surface actionable competitive intel
    New Feature

    Surface actionable competitive intel

    Learn More
  • Log in
    • Moz Pro
    • Moz Local
    • Moz Local Dashboard
    • Moz API
    • Moz API Dashboard
    • Moz Academy
  • Avatar
    • Moz Home
    • Notifications
    • Account & Billing
    • Manage Users
    • Community Profile
    • My Q&A
    • My Videos
    • Log Out

The Moz Q&A Forum

  • Forum
  • Questions
  • Users
  • Ask the Community

Welcome to the Q&A Forum

Browse the forum for helpful insights and fresh discussions about all things SEO.

  1. Home
  2. SEO Tactics
  3. Technical SEO
  4. Robots.txt to disallow /index.php/ path

Moz Q&A is closed.

After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.

Robots.txt to disallow /index.php/ path

Technical SEO
4
9
9.6k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as question
Log in to reply
This topic has been deleted. Only users with question management privileges can see it.
  • Mikkehl
    Mikkehl last edited by Nov 27, 2012, 12:49 PM

    Hi SEOmoz,

    I have a problem with my Joomla site (yeah - me too!). I get a large amount of /index.php/ urls despite using a program to handle these issues. The URLs cause indexation errors with google (404). Now, I fixed this issue once before, but the problem persist. So I thought, instead of wasting more time, couldnt I just disallow all paths containing /index.php/ ?.

    I don't use that extension, but would it cause me any problems from an SEO perspective?

    How do I disallow all index.php's? Is it a simple: Disallow: /index.php/

    1 Reply Last reply Reply Quote 0
    • Mikkehl
      Mikkehl @Cyrus-Shepard last edited by Nov 29, 2012, 7:30 AM Nov 29, 2012, 7:30 AM

      Hi Cyrus,

      Thanks for your reply!

      Unfortunately the problem is yet to be fixed, I hope that my disallow will work shortly.

      It seems that most of the index.php links to each other internally (and from old /index.php/ pages that no longer exist), which is super weird. How google found them does not make any sense to me.

      I don't beleive that external sources are linking to these pages either - I mean, how would they find these links anyway?.

      1 Reply Last reply Reply Quote 0
      • Cyrus-Shepard
        Cyrus-Shepard last edited by Nov 29, 2012, 4:17 AM Nov 29, 2012, 4:17 AM

        Hi Mikkel,

        Like Chris, I spidered your site and couldn't find any links to /index.php files, which probably indicates one of two things:

        1. You've fixed the problem - Yay!
        2. Or Google is finding those links from external sources
        3. Google found those links at one time in the past, and is still trying to crawl them.

        In the Crawl Errors report in Google Webmaster Tools, if you click on the link of each 404, there's often a "linked from" source where you can see where Google discovered the broken link. This is really helpful in rooting out the cause.

        Regardless, I'm going to go with #1 and optimistically believe that you were able to fix the problem. 🙂

        Mikkehl 1 Reply Last reply Nov 29, 2012, 7:30 AM Reply Quote 1
        • cogbox
          cogbox @Mikkehl last edited by Nov 27, 2012, 2:50 PM Nov 27, 2012, 2:50 PM

          If I spider your site I'm not seeing any /index.php urls. Does that mean you did get Joomla to cooperate with your rewriting?

          Or was your problem that you'd previously had urls indexed with /index.php/ paths and you needed to remove them?

          1 Reply Last reply Reply Quote 1
          • SanketPatel
            SanketPatel @Mikkehl last edited by Nov 27, 2012, 1:14 PM Nov 27, 2012, 1:14 PM

            Hi Mikkel, I have checked your robots.txt, it looks perfect. If you redirect /index.php to home page that using httaccess file or by using any joomla plugin that would great for you. And its also a permanent solution. 🙂

            1 Reply Last reply Reply Quote 0
            • Mikkehl
              Mikkehl @cogbox last edited by Nov 27, 2012, 1:01 PM Nov 27, 2012, 1:01 PM

              Well, I tried the sensible solution and redirecting to the correct URL instead. However the SEF program is quite limited and keep on creating new URLs regardless of my modification. Im looking for a more permanent solution, and the disallow seems at bit simple as I'm not a super programmer.

              By the way - thanks for quick replys, kudos to both of you!

              SanketPatel cogbox 2 Replies Last reply Nov 27, 2012, 2:50 PM Reply Quote 0
              • Mikkehl
                Mikkehl @SanketPatel last edited by Nov 27, 2012, 12:59 PM Nov 27, 2012, 12:59 PM

                Sure, the website in question is www.vauni.dk

                I don't think that there is any inbound links to the index.php pages. They are not easily found.

                1 Reply Last reply Reply Quote 0
                • cogbox
                  cogbox last edited by Nov 27, 2012, 1:06 PM Nov 27, 2012, 12:59 PM

                  Couldn't you rewrite those /index.php/ urls to remove the /index.php/?

                  Like this in .htaccess:

                  RewriteRule ^(.*)$ /index.php/$1 [L]

                  Only used Joomla once, but there must be a way to configure joomla to just use "/" instead of "/index.php/"?

                  Update:

                  Here's a solution to your /index.php/ issue:

                  http://www.eprcreations.com/remove-index-php-from-joomla-urls/

                  Once you've updated that, and have your urls working properly without the /index.php/, you could add this slight modification of the rewrite rule above so that all your old /index.php/ urls would be 301'd to your new ones:

                  RewriteRule ^(.*)$ /index.php/$1 [R=301,L]

                  Put it underneath the RewriteBase / line they describe in that post.

                  Mikkehl 1 Reply Last reply Nov 27, 2012, 1:01 PM Reply Quote 0
                  • SanketPatel
                    SanketPatel last edited by Nov 27, 2012, 1:20 PM Nov 27, 2012, 12:56 PM

                    Hi Mikkel,

                    Do you inbound link pointing to you index.php pages ? If yes, then it might affect your seo. Disallow: /index.ph/ is perfect but after implementing it don't inter link those index.php pages. Can you share me your website URL so that I can show you with example. How to do it.

                    Mikkehl 1 Reply Last reply Nov 27, 2012, 12:59 PM Reply Quote 1
                    • 1 / 1
                    1 out of 9
                    • First post
                      1/9
                      Last post

                    Got a burning SEO question?

                    Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.


                    Start my free trial


                    Browse Questions

                    Explore more categories

                    • Moz Tools

                      Chat with the community about the Moz tools.

                    • SEO Tactics

                      Discuss the SEO process with fellow marketers

                    • Community

                      Discuss industry events, jobs, and news!

                    • Digital Marketing

                      Chat about tactics outside of SEO

                    • Research & Trends

                      Dive into research and trends in the search industry.

                    • Support

                      Connect on product support and feature requests.

                    • See all categories

                    Related Questions

                    • SS.Digital

                      Google Indexed a version of my site w/ MX record subdomain

                      We're doing a site audit and found "internal" links to a page in search console that appear to be from a subdomain of our site based on our MX record.  We use Google Mail internally.  The links ultimately redirect to our correct preferred subdomain "www", but I am concerned as to why this is happening and if it can have any negative SEO implications. Example of one of the links: Links aspmx3.googlemail.com.sullivansolarpower.com/about/solar-power-blog/daniel-sullivan/renewable-energy-and-electric-cars-are-not-political-footballs I did a site operator search, site:aspmx3.googlemail.com.sullivansolarpower.com on google and it returns several results.

                      Technical SEO | Aug 1, 2017, 5:10 AM | SS.Digital
                      0
                    • zeepartner

                      Robots.txt on http vs. https

                      We recently changed our domain from http to https. When a user enters any URL on http, there is an global 301 redirect to the same page on https. I cannot find instructions about what to do with robots.txt. Now that https is the canonical version, should I block the http-Version with robots.txt? Strangely, I cannot find a single ressource about this...

                      Technical SEO | Feb 5, 2015, 3:18 PM | zeepartner
                      0
                    • hammadrafique

                      Blocked jquery in Robots.txt, Any SEO impact?

                      I've heard that Google is now indexing links and stuff available in javascript and jquery. My webmastertools is showing that some links are blocked in robots.txt of jquery. Sorry I'm not a developer or designer. I want to know is there any impact of this on my SEO? and also how can I unblock it for the robots? Check this screenshot: http://i.imgur.com/3VDWikC.png

                      Technical SEO | Oct 15, 2014, 8:05 AM | hammadrafique
                      0
                    • mkhGT

                      Are robots.txt wildcards still valid? If so, what is the proper syntax for setting this up?

                      I've got several URL's that I need to disallow in my robots.txt file. For example, I've got several documents that I don't want indexed and filters that are getting flagged as duplicate content. Rather than typing in thousands of URL's I was hoping that wildcards were still valid.

                      Technical SEO | Jul 9, 2013, 9:04 PM | mkhGT
                      0
                    • priceseo

                      How to determine which pages are not indexed

                      Is there a way to determine which pages of a website are not being indexed by the search engines? I know Google Webmasters has a sitemap area where it tells you how many urls have been submitted and how many are indexed out of those submitted. However, it doesn't necessarily show which urls aren't being indexed.

                      Technical SEO | Apr 19, 2024, 3:06 PM | priceseo
                      1
                    • NaescentAdam

                      Index.php and 301 redirect with Joomla

                      Hi, I'm running Joomla 1.7 with SEF on and I'm trying to do a htaccess redirect which fails. I have approximately 100 in effect so far and all working fine, but I have one snag. Index.php is not working as I need it to when it's redirected to www.myurl.com/ If I turn on index.php redirect to root using this code #index.php to root
                      RewriteCond %{HTTP_HOST} ^myurl.com$ [OR]
                      RewriteCond %{HTTP_HOST} ^www.myurl.com$
                      RewriteRule ^index.php$ "http://www.myurl.com/" [R=301,L] And then go to www.myurl.com/test.html I'm redirected to the homepage. I think this is because all pages are index.php in joomla. SEOMOZ and Google both think that index.php and root are duplicate pages. Does anyone have any advice for overcoming this? Thanks, Adam

                      Technical SEO | Aug 18, 2012, 6:53 AM | NaescentAdam
                      0
                    • RogersSEO

                      /index.php in sitemap? take it out?

                      Hi Everyone, The following was automatically generated at xml-sitemaps.com Should I get rid of the index.php url from my sitemap?  If so, how do I go about redirecting it in my htaccess ? <url><loc>http://www.mydomain.ca/</loc></url>
                      <url><loc>http://www.mydomain.ca/index.php</loc></url> thank you in advance, Martin

                      Technical SEO | Jun 20, 2011, 3:01 PM | RogersSEO
                      0
                    • kchandler

                      Robots.txt File Redirects to Home Page

                      I've been doing some site analysis for a new SEO client and it has been brought to my attention that their robots.txt file redirects to their homepage. I was wondering: Is there a benfit to setup your robots.txt file to do this? Will this effect how their site will get indexed? Thanks for your response! Kyle Site URL: http://www.radisphere.net/

                      Technical SEO | Mar 18, 2011, 11:01 AM | kchandler
                      0

                    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
                    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 - 2025 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                    • Accessibility
                    • Terms of Use
                    • Privacy

                    Looks like your connection to Moz was lost, please wait while we try to reconnect.