PSD to HTML conversion PSD to HTML conversion PSD2HTML.com with over 300 professionals takes the designs to HTML and beyond

Code Snippet

Home » Code Snippets » HTAccess » Get The Dreamhost Stats Page Working on a WordPress Site

Get The Dreamhost Stats Page Working on a WordPress Site

For websites hosted with Dreamhost, you have an analytics page by default at yoursite.tld/stats/. WordPress can interfere with this, thinking that you are trying to link to a page or category and give you a generated 404 page instead.

Simply add this to your .htaccess file ABOVE the typical # BEGIN WordPress stuff to get it working again.

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

Subscribe to The Thread

  1. Just the code i was looking for and to add to this, it wont appear to be working unless you clear your cookies or whatever and then reload it. the codes perfect just it wont seem to work unless you do :)

  2. Thanks!!! That’s exactly what I needed, the pages really did look ugly with the ?p=number!!

    Keep up the good work!

  3. Thanks. Its exactly what i am looking for!

  4. Wow, thank you for this! Dreamhost could not help me with this at all!! I did what you said, and right away it worked. And Candace, thanks for mentioning clearing the cookies – I had the same problem and after I did that, worked right away!!

    Sharon Hiebing
    Follow Your Dream Compass

Speak, my friend

At this moment, you have an awesome opportunity* to be the person your mother always wanted you to be: kind, helpful, and smart. Do that, and we'll give you a big ol' gold star for the day (literally).

Posting tips:
  • You can use basic HTML
  • When posting code, please turn all
    < characters into &lt;
  • If the code is multi-line, use
    <pre><code></code></pre>
Thank you,
~ The Management ~