Adding index.php at the end of the url effect it's rankings
-
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?
-
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.
-
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!
-
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
-
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
-
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.
-
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.
-
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)
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.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
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.
Related Questions
-
Google Adding Incorrect Location to the end of Title Tags in SERPs
I have an issue with the way Google is adding to a client’s Title Tag. Since we relaunched the website a few months ago, Google has been adding an indiscriminate “– London” to the end of title tags. That would be fine if the company was solely London based but we have stores outside London too, and it’s adding “– London” to the end of those individual store title tags there too. So, if you do a search for “location widget” our page title is:
Intermediate & Advanced SEO | | DrewDaviesLondon
“location widget | Brand name”
but then Google pops in:
“location widget | Brand name - London”
Which isn’t great if the location is in Scotland! We are adding structured data to the store pages to try and combat this, the store pages are all well optimised for the location (and ranking well), but I’m wondering if I’ve missed anything obvious? I thought it might lesson as the new site became more trusted in Google, but the rogue “London” seems to be increasing... Thanks for your help!0 -
Client wants to remove mobile URLs from their sitemap to avoid indexing issues. However this will require SEVERAL billing hours. Is having both mobile/desktop URLs in a sitemap really that detrimental to search indexing?
We had an enterprise client ask to remove mobile URLs from their sitemaps. For their website both desktop & mobile URLs are combined into one sitemap. Their website has a mobile template (not a responsive website) and is configured properly via Google's "separate URL" guidelines. Our client is referencing a statement made from John Mueller that having both mobile & desktop sitemaps can be problematic for indexing. Here is the article https://www.seroundtable.com/google-mobile-sitemaps-20137.html
Intermediate & Advanced SEO | | RosemaryB
We would be happy to remove the mobile URLs from their sitemap. However this will unfortunately take several billing hours for our development team to implement and QA. This will end up costing our client a great deal of money when the task is completed. Is it worth it to remove the mobile URLs from their main website to be in adherence to John Mueller's advice? We don't believe these extra mobile URLs are harming their search indexing. However we can't find any sources to explain otherwise. Any advice would be appreciated. Thx.0 -
Migrating From Parameter-Driven URL's to 'SEO Friendly URL's (Slugs)
Hi all, hope you're all good and having a wonderful Friday morning. At the moment we have over 20,000+ live products on our ecomms site, however, all of the products are using non-seo friendly URL's (/product?p=1738 etc) and we're looking at deploying SEO friendly url's such as (/product/this-is-product-one) etc. As you could imagine, making such a change on a big ecomms site will be a difficult task and we will have to take on A LOT of content changes, href-lang changes, affiliate link tests and a big 301 task. I'm trying to get some analysis together to pitch the Tech guys, but it's difficult, I do understand that this change has it's benefits for SEO, usability and CTR - but I need some more info. Keywords in the slugs - what is it's actual SEO weight? Has anyone here recently converted from using parameter based URL's to keyword-based slugs and seen results? Also, what are the best ways of deploying this? Add a canonical and 301? All comments greatly appreciated! Brett
Intermediate & Advanced SEO | | Brett-S0 -
Index Pages become No-Index
Hi Mozzers, Here is the scenario: I created a landing page targeting Holiday keywords for the holiday season. The page has been crawled and indexed - I see my landing page in the SERP. However, because of the CMS layout, since the Holiday is over and I don't want it to be displayed on the homepage, i have to remove the page from hp which makes it no-index (don't ask why, it's how the CMS was built). Question: How does this affect this LP's search? Since it's already crawled and etc. will it still be on the SERP after i change the page to no-index? If I remove the no-index next year for the holiday season, how does this all play out? Any insights or information provided will be appreciated. Thank you!
Intermediate & Advanced SEO | | TommyTan0 -
Is there any SEO advantage to sharing links on twitter using google's url shortener goo.gl/
Hi is there any advantage to using <cite class="vurls">goo.gl/</cite> to shorten a URL for Twitter instead of other ones? I had a thought that <cite class="vurls">goo.gl/</cite> might allow google to track click throughs and hence judge popularity.
Intermediate & Advanced SEO | | S_Curtis0 -
Ending URLs in .html versus /
Hi there! Currently all the URLs on my website, even the home page, end it .html, such as http://www,consumerbase.com/index.html Is this bad?
Intermediate & Advanced SEO | | Travis-W
Is there any benefit to this? Should I remove it and just have them end with a forward slash?
If I 301 redirect the old .html URLs to the forward slash URLs, will I lose PA? Thanks!0 -
Silo Architecture - need an expert's advice
I understand the concept of silo architecture. What I don't understand is how to build the site navigation. I see experts talking about silos, but their sites have pervasive top level navigation. In theory, your top level nav breaks your silos. If I have 20 pages of supporting content all linked to my silo page, and the top nav is on the supporting content pages, then those pages all link to the pages in the top nav - silo broken, and link juice diluted. it would seem to me that the only way to build a true silo is to strip out all of the navigation on a supporting page, and only have it link to: 1. The silo landing page 2. Other supporting pages in the silo. is this what Bruce Clay does? I've seen Rand's lectures on silos as well. Is this what he is doing? I recently saw a video by the Network Empire team, and they'd also have a pervasive nav. Can someone please explain this?
Intermediate & Advanced SEO | | CsmBill0 -
Ranking for our member's company names without giving them all away!
Hi, We have a directory of 25,000 odd companies who use our site. We have a strong PR site and want to rank a page for each company name. Some initial testing on one or two company names brings us to #2 after the company's own web site in the format: "Company Name Reviews and Feedback" - so it works well. We want to do this for all 25,000 of our members, however we do not wish to make it easy for our competitors to scrape through our member database!! e.g. using: www.ourdomain.com/randomstring/company-name-(profile).php unfortunately with the above performing a search on google for site:domain.com/()/()(profile).php would bring up all records. Are there any tried and tested ways of achieving what we're after here? Many Thanks.
Intermediate & Advanced SEO | | sssrpm0