Stats page not working

The stats page on one of my domains is down. The site had been using Mambo CMS and it did rewrite the .htaccess file (which in an earlier post claimed this was the reason why stats didn’t show up). My question’s are, is this the reason why I can’t see my stats on this domain (I can see it just fine on other domains), and also, are stats going to be broken on every domain with a rewritten .htaccess file?

A lot of CMS and Weblog applications use mod_rewrite to capture a specific URL string and rewrite it internally to run it through the software and generate the appropriate page. The mod_rewrite rules typically are maybe a tad over-zealous and rewrite everything, including requests for /stats/.

You can add some rewrite rules of your own like this to make it skip requests for /stats/:

RewriteCond %{REQUEST_URI} ^/stats/(.)$ [OR]
RewriteCond %{REQUEST_URI} ^/failed_auth.html$
RewriteRule ^.
$ - [L]

Those should go towards the top, pretty much before any other RewriteRule lines. It basically just tells it to not do anything for requests for /stats/.

  • Dallas
  • DreamHost Head Honcho/Founder