• Link Title

    Short description of the page you're linking to

DreamHost stats broken after installing WordPress

If you use DreamHost for your hosting then you may not be able to access your regular web stats after installing Wordpress.  There is an easy fix available.

If you have access to the shell then add the following lines to your .htaccess file in the root of your domain (without shell access, you’d need to download the file, edit it and re-upload it via FTP).  These lines should be inserted before the lines added by Wordpress:

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

So, the beginning of your .htaccess file should look like this:

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

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Share and Enjoy:
  • Digg
  • Sphinn
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Reddit
  • email

If you liked this post, subscribe to The Swog Blog's RSS feed.

Filed under: Hosting

Leave a Reply

CommentLuv Enabled