Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Stats page redirects to main
I’ve figured this out, but it might be helpful if someone else runs into the same problem. I access my Stats page by going to www.criticalmiami.com/stats. Well, .htaccess redirects this to the main page. The solution, fom Dreamhost support, is to add the following lines to .htaccess:
RewriteCond %{REQUEST_URI} !^/stats/(.*)$
RewriteCond %{REQUEST_URI} !^/failed_auth.html$
. . . which works like a charm.
Yes, I have tried turning it off and on.
Offline
Re: Stats page redirects to main
i’m having the same problem and this fix didn’t work for me (i’m w/ dreamhost too). does it matter where in the .htaccess file the lines are placed? any additional text needed?
Offline
Re: Stats page redirects to main
I think I put them at the end . . . my regular computer is down so I can’t check for sure.
Yes, I have tried turning it off and on.
Offline
Re: Stats page redirects to main
OK, the following works great with version 4.0.1. The second two “RewriteCond” lines are from Dreamhost tech support, the rest is the release version :
bc..#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteCond %{REQUEST_URI} !^/stats/(.*)$
RewriteCond %{REQUEST_URI} !^/failed_auth.html$
RewriteRule ^(.+) – [PT,L]
RewriteRule ^(.*) index.php
</IfModule>
Last edited by alesh (2005-09-11 05:28:48)
Yes, I have tried turning it off and on.
Offline
Re: Stats page redirects to main
That works perfectly on my Dreamhost account.
Thanks for chasing that down alesh
Offline
Re: Stats page redirects to main
what alesh wrote worked perfectly – until i checked the individual posts and then nothing.
for example, http://sitename.com/article/48/articletitle
gives me the 404 error page — what am i doing wrong?
this is with the latest version of txp..
Offline
#7 2006-05-03 16:13:19
- semanio
- Member
- Registered: 2005-10-18
- Posts: 20
Re: Stats page redirects to main
Is anyone else having an issue with this fix on 4.0.3? I can’t seem to get it to work. It will load my home page okay but if I go into any links or sections on my site I get an internal server error.
Thanks.
Offline
#8 2006-05-03 16:36:38
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Stats page redirects to main
Offline
Pages: 1