Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We switched from a PHP application to a Rails application last week. I ran daily reports and everything looked fine. When I ran a weekly content report it gave me data for index.php which doesnt exist anymore. The funny thing is that is looks spot on for page views. This also made me wonder how analytics would record "/" in a Rails app. I ran it through Fiddler, there is no redirect just a 404. I view source on the 404 and there is no tracking code.

I am pretty baffled. Anyone know what could be going on ?

share|improve this question

We saw the same thing a few weeks ago. We got a massive surge of traffic reported that had nothing to do with our site.

The following URL might help:


share|improve this answer
up vote 0 down vote accepted

Heres what I figured out. If I have a route in rails like /life/announcements and you put in /life/announcements.php Rails seems to ignore the .php. And though I haven't been able to recreate it for index.php, if you goto /index you get the index so following the above example /index.php would give you /index So analytics is just tracking the url whether Rails is ignoring the .php or not.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.