You are here

ravisagar's blog

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]

Why I love Drupal?

Creating my own Database Driven Dynamic website was a dream for me, yeah I know it is not that difficult, but when you want a Blog, a Powerful CMS, User Registration, Email, Forums, Comments, Access Restriction based on User Roles and bla bla bla other cool things in your website then it get little tough. The very though of making a website with all these features used to Haunt me. I think I am a good Programmer but I am a Lazy person. I do not like do same things again and again.

Pages

Subscribe to RSS - ravisagar's blog