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. Intermediate & Advanced SEO
    4. Adding index.php at the end of the url effect it's rankings

    Adding index.php at the end of the url effect it's rankings

    Intermediate & Advanced SEO
    8 5 2.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.
    • authoritysitebuilder
      authoritysitebuilder last edited by

      I have just had my site updated and we have put index.php at the end of all the urls. Not long after the sites rankings dropped. Checking the backlinks, they all go to (example)  http://www.website.com  and not http://www.website.com/index.php. So could this change have effected rankings even though it redirects to the new url?

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

        Hi Authority Sitebuilder, First of all Google doesn't seem to care about these but for users' sake, for the sake of conformity and as a good practice, it is best to do a redirect

        from(example)

        http://www.website.com

        to

        http://www.website.com/index.php

        In other words, select one URL and stick with it, redirect all others. Make a 301 redirect of your old URLs to your new URLs. Then it should not affect your ranking unless you will do some other changes on your pages As you said earlier that all the back links go to the  http://www.website.com (old url), so it is better to redirects o the new url i.e  http://www.website.com/index.php

        I hope that your query had been solved.

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

          You say you have put index.php at the end of all the URLs?  So each page is in it's own directory?

          Harald is 100% correct but I am wondering; did you always have each page in it's own directory or was that part of the recent change?  If the file names used to be more SEO friendly (i.e. keywords in the file name) and now they are just named index.php then that could have a lot to do with your rankings dropping.

          Just wanted to add that, cheers.

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

            Authority

            This may be implied or I may be missing something, but as to your links and 301's, if you are saying you did a single 301 of http://www.website.com to http://www.website.com/index.php then your rankings drop is because of that. For each url with links, you need to do the redirect of .com/url-a, url-b, etc. to .com/url-a/index.php, .com/url-b to .com/url-b/index.php, and so forth. This should be done in the .htaccess file. You will not transfer link juice by tranferring domain to domain, etc. You must do it url to url.

            Hope it helps.

            authoritysitebuilder 1 Reply Last reply Reply Quote 2
            • authoritysitebuilder
              authoritysitebuilder @RobertFisher last edited by

              Thanks all for you input!

              We have done redirected the old urls to the new ones ie from www.site.com/keyword/  - to - www.site.com/keyword/index.php

              We changed host on the 5th Feb. and literally the same day all rankings dropped. I know there have been recent Google updates but finding the real cause of this is still difficult. If there were no changes to the site, then I may have leant more towards a google algorithm update but the rankings dropped as soon as the sites hosting was changed from US to Europe. Hosting has since been changed back to US based.... 3 days on though and no significant improvements although some keywords are moving up 5 places or so.

              Any more input appreciated

              RobertFisher authoritysitebuilder 2 Replies Last reply Reply Quote 0
              • RobertFisher
                RobertFisher @authoritysitebuilder last edited by

                Authority, You just named the issue. Changed from US to Europe. I am assuming the site is in English, what country are you targeting?

                If US, and you changed to Europe, you would have had to go into GWMT and change language settings to EN-US. As a .com is not a ccTLD, and a server residing in Europe will be presumed to be targeting there, if you are not set up with GWMT as EN-US, your rankings will drop for a US search.

                So, now, no matter what you are targeting, go into GWMT and go to site config, settings, language and choose the correct language config. Even if you are US and you are hosted in US, I urge you to insure this is done.

                LMK

                1 Reply Last reply Reply Quote 1
                • authoritysitebuilder
                  authoritysitebuilder @authoritysitebuilder last edited by

                  Hi Robert,

                  Thanks for your input on this.

                  The webmaster changed the hosting from US to Spain without my knowledge, the first I knew of it was when I saw the rankings drop and called him to see if there were any changes done to the site.

                  The site also seemed to be down at various times during the process and the analytics stopped recording data for 3 days.

                  We had excellent rankings in UK & US (both our target markets) but the day we changed host, the rankings all dropped from between 5 to 30 positions and so far are showing no real sign of returing to their original rankings even though we have now changed to a new US host.

                  I don't know if you have ever had the same experience but I wonder how much of an impact this will have in the long run for the rankings and will they even return without having to significantly promote the site again.

                  There are a number of factors which took place over this period:

                  1. Site was down when on old US host for a minimum of 3 hours one day and perhaps longer

                  2. Changed from US host to host based in Spain

                  3. Analytics stopped recording data for 3 days and site was down briefly after the change of host

                  4. New Google algorithm change

                  5. All original URLs now have /index.php at the end

                  Can it be a combination of all these factors or is there one main culprit?

                  I will speak with our webmaster Monday and ensure that he has set the target language to EN-US but we are also targeting the UK market and prior to this we were ranked very well in both countries.

                  Again, thanks for all your feedback!

                  1 Reply Last reply Reply Quote 0
                  • Cyrus-Shepard
                    Cyrus-Shepard last edited by

                    Lot's of good advice here, so I'll just weigh in with my two cents...

                    Instead of redirecting all your files to /index.php, why not rewrite those in .htaccess to redirect back to the original (without the /index.php)

                    This has the dual effect of preserving your link equity to those original urls, and there's a slight correlation between shorter URLs and higher rankings (in part possibly because shorter URLs have a higher click-thru rate)

                    Regardless, I suspect a perfect storm of factors contributed to your rankings, as you stated yourself:

                    1. Site was down when on old US host for a minimum of 3 hours one day and perhaps longer

                    2. Changed from US host to host based in Spain

                    3. Analytics stopped recording data for 3 days and site was down briefly after the change of host

                    4. All original URLs now have /index.php at the end

                    I purposely left out a Google Algorithm change, because of Occam's Razor - the simplest explanation is usually correct, and an algorythm change would be too much coincidence.

                    As Robert said, make sure you're targeting the right country in Google Webmaster. Other than that, I would try very hard to return all URLs, hosting and settings back to their original state before all these changes.

                    1 Reply Last reply Reply Quote 1
                    • 1 / 1
                    • First post
                      Last post
                    • Why is my website not ranking for it's brand name in SERPs but has been indexed by Google?
                      Nigel_Carr
                      Nigel_Carr
                      0
                      4
                      636

                    • Will disallowing URL's in the robots.txt file stop those URL's being indexed by Google
                      Martijn_Scheijbeler
                      Martijn_Scheijbeler
                      0
                      11
                      1.6k

                    • Does Google Read URL's if they include a # tag? Re: SEO Value of Clean Url's
                      Atlanta-SMO
                      Atlanta-SMO
                      0
                      6
                      1.6k

                    • Remove URLs that 301 Redirect from Google's Index
                      CommT
                      CommT
                      0
                      3
                      8.9k

                    • Will Canonical tag on parameter URLs remove those URL's from Index, and preserve link juice?
                      StreamlineMetrics
                      StreamlineMetrics
                      0
                      2
                      113

                    • Is there any negative SEO effect of having comma's in URL's?
                      gcdtechnologies
                      gcdtechnologies
                      0
                      3
                      2.6k

                    • Should I 301 Poorly Worded URL's which are indexed and driving traffic
                      RobertFisher
                      RobertFisher
                      0
                      2
                      478

                    • Sitemap - % of URL's in Google Index?
                      irvingw
                      irvingw
                      0
                      7
                      677

                    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