Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-08-20 12:44:07

alesh
Member
From: Miami, FL
Registered: 2005-04-13
Posts: 228
Website

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

#2 2005-08-26 16:33:19

xenobulb
Member
From: chicago, IL
Registered: 2005-05-27
Posts: 10
Website

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

#3 2005-08-26 20:11:11

alesh
Member
From: Miami, FL
Registered: 2005-04-13
Posts: 228
Website

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

#4 2005-09-11 05:24:50

alesh
Member
From: Miami, FL
Registered: 2005-04-13
Posts: 228
Website

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

#5 2005-09-11 21:15:24

NeilA
Member
From: Blue Mountains, Australia
Registered: 2004-08-15
Posts: 316
Website

Re: Stats page redirects to main

That works perfectly on my Dreamhost account.

Thanks for chasing that down alesh


Neil – Blue Mountains, Australia

http://westserve.org
http://ministrygrounds.net.au

Offline

#6 2005-12-09 22:20:59

andrea
Member
From: la la land
Registered: 2004-02-24
Posts: 62
Website

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

FAQ

Offline

Board footer

Powered by FluxBB