Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
stats not accessible on Dreamhost
Usually for domains hosted at Dreamhost you can access some statistics package at “yourdomain.com/stats”. However, in domains with a TXP install this URL resolves to a 404 page.
Anyone hosted at Dreamhost has had this experience before? And, how did you solve it?
EDIT:
OK, I found the answer. If anybody wants to know, I added these lines to my .htaccess file:
RewriteCond %{REQUEST_URI} ^/stats/(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^/failed_auth.html$
RewriteRule ^.*$ – [L]
(just before RewriteCond %{REQUEST_FILENAME} -f [OR])
Last edited by jordi (2006-02-09 16:35:34)
Offline
#2 2006-02-09 16:36:50
- Joey
- Member
- From: Netherlands
- Registered: 2005-01-19
- Posts: 257
Re: stats not accessible on Dreamhost
I do have this experience also, but I never asked if somebody knows a solution. So…? Any thoughts?
Regards,
Joey
Offline
Re: stats not accessible on Dreamhost
yes.. you need to duplicate the rewrite they use to get to the /stats/ folder. My rewrite rules look something like:
<pre><code>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/stats/(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^/failed_auth.html$
RewriteRule ^.*$ – [L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) – [PT,L]
RewriteRule ^(.*) index.php
</IfModule>
</code></pre>
theres also documentation of this in their wiki as its an issue that pops up with many packages that use similar rewrite rules:
http://wiki.dreamhost.com/index.php/Mod_rewrite
http://wiki.dreamhost.com/index.php/Making_stats_accessible_with_htaccess
Last edited by placenamehere (2006-02-09 18:06:55)
Site: placenamehere.com
Microformat Plugin: pnh_mf
Offline
Pages: 1