Dreamhost

From Hackepedia
Revision as of 13:43, 4 April 2010 by Franks (talk | contribs) (Created page with '== Wordpress == If you use Wordpress on Dreamhost, you won't be able to see your website logs statistics. In order to do so, add the following to your root level Wordpress direc…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Wordpress

If you use Wordpress on Dreamhost, you won't be able to see your website logs statistics. In order to do so, add the following to your root level Wordpress directory:

vi .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^/stats/(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^/failed_auth.html$
RewriteRule ^.*$ - [L]
</IfModule>
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

Save the file and reload in your browser and add /stats/ to the URL.