DreamHost Statistics While Running Wordpress

If you run WordPress in your webroot, it grabs all of the URLs and if it doesn’t recognize one, it returns a 404.  So, you need to add this to your .htaccess, BEFORE the WordPress rewrite section to get to your DreamHost statistics page:

# For DreamHost stats
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^/(stats|failed_auth\.html).*$ [NC]
RewriteRule . - [L]
</IfModule>

Leave a Reply

You must be logged in to post a comment.