.htaccess rules for your WP 2.0+ blog

I keep finding my blog rewrites the rules for the *.htaccess files. Don’t know why. I’m placing the text here so you can copy and edit it any time you need it! This set of rules is for people who use WordPress 2.0~2.0.7 on their own hosted server and who need to access their *stats* packages in a folder off the main URL, as here. In standard WP2.0+ .htaccess files, the commands return a 404 error. This fixes that problem.

# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^/stats/(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^/failed_auth.html$
RewriteRule ^.*$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php

# END WordPress

Happy Blogging 2007!