Wordpress 2.0.x and Dreamhost Stats

Wordpress 2.0.x and Dreamhost Stats

Posted by: stonegauge
Posted on: 2006-04-08 13:49:00

How many of you who have Wordpress isntalled on your sites have noticed stats don't work with the new version of WP?

Dreamhost guided me to a "fix" on their Wiki that woudl append the .htaccess file, but Wordpress repeatedly appended the appended .htaccess file so that the new code that was inserted would be wiped out (should I have chmod the .htaccess file to somehow prevent this?).

Another solution that I had someone provide for me was a plugin for Wordpress specifically for Dreamhost. Thsi plugin sort of works, and sort of doesn't -- meaning if I have an invalid syntax int he plugin file, I get error messages but am allowed to view Dreamhost stats, and if I repair the syntax inside the plugin file, the plugin fails to work (and going to yourpage.com/stats would simply redirect to the main page of the site).

Is there a definitive fix out there? Or more experiencing this error than just I?

Re: Wordpress 2.0.x and Dreamhost Stats

Posted by: JeffG
Posted on: 2006-04-08 19:43:00

Just take a look on the wiki: ;)
http://wiki.dreamhost.com/index.php/Making_stats_accessible_with_htaccess

Re: Wordpress 2.0.x and Dreamhost Stats

Posted by: chell
Posted on: 2006-04-10 21:11:00

I've had the exact same problem, but just used a php script in a different directory to fread the appropriate log file. Then switched to AWStats, although I use good ol' php still to read the resources stuff. AWStats seems like a great solution. Not sure why that htaccess thingy doesn't work.

~Chell
http://www.chellsroost.com

Re: Wordpress 2.0.x and Dreamhost Stats

Posted by: ashchan
Posted on: 2006-04-11 09:36:00

You should try adding your own rules outside the # BEGIN WordPress & # END WordPress block. My .htaccess for www.ashchan.com looks like (and it works):
#BEGIN Ash
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
#RewriteCond %{REQUEST_URI} ^/rocdeng ./_rocdeng.htm
RewriteCond %{REQUEST_URI} ^/stats/(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^/failed_auth.html$
RewriteRule ^.*$ - [L]
</IfModule>
#END Ash

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

I had a blog entry on this topic, the url is http://www.ashchan.com/2006/03/26/wordpress-cpu-usage-on-dreamhost/, but it was in Chinese. I hope the example above would help.

http://www.ashchan.com

Tags: htaccess filedreamhosterror messageswikichmodappendredirectdefinitive