Dreamhost statistics have stopped working

Home Forums BulletProof Security Free Dreamhost statistics have stopped working

This topic contains 8 replies, has 2 voices, and was last updated by  AITpro Admin 4 years, 7 months ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #6481

    AJS
    Participant

    In January 2012 you kindly supplied me the following code to add to my Root .htaccess File Custom Code to allow my Dreamhost statistics to be accessible with BPS turned on (seen at http: //www.mydomain.com/stats/longterm.html). Sadly, this has stopped working—I’m not sure when). Do you have any suggestions?

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

    Thanks!
    Adrian

    #6483

    AITpro Admin
    Keymaster

    Go to the BPS htaccess File Editor tab page, click on your Current Root .htaccess File tab, look for this code below in your root .htaccess file…

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]

    …and add this RewriteRule after the code above in your root .htaccess file…

    # RewriteRule for Custom Apps outside of WP
    RewriteRule ^/stats/ - [L]
    #6484

    AJS
    Participant

    Thanks – I did this but I still do not see the statistics page.

    #6485

    AITpro Admin
    Keymaster

    Check your BPS Security Log for any errors directly related to this issue/problem and post the error.  Please do not post your entire Security Log file.

    #6488

    AJS
    Participant

    Hmmm, no message appears in the Security Log. So I guess this is not a BPS problem (which it was in the past). I will check with Dreamhost to see if they’ve changed something. Thank you for your prompt responses; I will only return if they don’t solve the problem.

    #6489

    AITpro Admin
    Keymaster

    Well it still could be caused by BPS.  To completely eliminate that BPS is causing this issue/problem do the troubleshooting steps in the link below.

    http://forum.ait-pro.com/forums/topic/read-me-first-free/#bps-free-general-troubleshooting

     

    #6518

    AJS
    Participant

    Dreamhost came up with a fix that works. (Though I don’t know why the statistics stopped working.) It’s described in this note:

    http://wiki.dreamhost.com/Making_stats_accessible_with_htaccess

    Thank you again for your excellent responses. BPS is a great product!

    #6520

    AITpro Admin
    Keymaster

    Hmm interesting that the “stats” rewrite code cannot be combined into the beginning of the WordPress rewrite loop in order for it to work correctly, but as long as it works then great.  Thanks for posting this info.

    #10897

    AITpro Admin
    Keymaster

    Same question was asked on wordpress.org.  New added BPS Custom Code text boxes allow you to save this stats code permanently.

    http://wordpress.org/support/topic/which-custom-code-box-do-i-use?replies=3#post-4835579

    http://wiki.dreamhost.com/Making_stats_accessible_with_htaccess

    BPS already has ErrorDocument directives in the root .htaccess file so you do not need to add these 2 lines of code:

    ErrorDocument 401 "Error"
    ErrorDocument 403 "Error"

    1. Copy your stats .htaccess code below to this Custom Code text box: CUSTOM CODE TOP PHP/PHP.INI HANDLER/CACHE CODE: Add php.ini handler and/or plugin cache code here…

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

    2. If you are using php/php.ini handler code or have cache code already in this text box then put your stats code after the php/php.ini handler code and before the cache code…

    php/php.ini code
    stats code
    cache code

    3. click the Save Root Custom Code button, go to the BPS Security Modes page and click the Root Folder BulletProof Mode Activate button.

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.