You are here

Enable Dreamhost Stats on Drupal website

If you are hosting your Drupal website on Dreamhost then you may not be aware that Dreamhost provides a nice stats feature for all the domains.

It is normally accessible at www.yoursite.com/stats but the problem is that with Drupal's clean_url enabled you will get "Page not found" error.

Their is an easy resolution for this. Just add the following three lines on top of your .htaccess file.


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

Now you can access www.yoursite.com/stats, you need to set a password for it in your Dreamhost Control Panel.