Home › Forums › BulletProof Security Free › Dreamhost statistics have stopped working
Tagged: DreamHost, DreamHost Statistics, DreamHost Stats
- This topic has 8 replies, 2 voices, and was last updated 10 years, 5 months ago by AITpro Admin.
-
AuthorPosts
-
AJSParticipant
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!
AdrianAITpro AdminKeymasterGo 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]
AJSParticipantThanks – I did this but I still do not see the statistics page.
AITpro AdminKeymasterCheck 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.
AJSParticipantHmmm, 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.
AITpro AdminKeymasterWell 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
AJSParticipantDreamhost 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!
AITpro AdminKeymasterHmm 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.
AITpro AdminKeymasterSame 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 code3. click the Save Root Custom Code button, go to the BPS Security Modes page and click the Root Folder BulletProof Mode Activate button.
-
AuthorPosts
- You must be logged in to reply to this topic.