Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-12-14 04:19:56

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

.htaccess and article section not working with stats

hi ~ i’m trying to fix a friend’s site that uses textpattern. he is hosting with dreamhost and they have a statistics page setup automatically at sitename.com/stats. however, since upgrading to textpattern 4.0.2, he can’t reach that stats section and instead get an error 404 txp page.

i found <a href=“http://forum.textpattern.com/viewtopic.php?id=10619”>this thread</a> in the forum and it suggested changing .htaccess so that i have the following instead:

<pre><code>
#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>
</pre></code>

this worked perfectly, until i checked the individual posts and then nothing and i have no idea why.

for example, http://sitename.com/article/48/articletitle would give me the 404 error page—what am i doing wrong?

doesn’t this mod_rewrite bit mean any file or directory that is called for, except for stats and failed_auth.html, should be sent to index.php? shouldn’t that include article?! the site works fine if i use this new .htacces and change to messy urls, but that is not really the solution i’m looking for.

thanks for any and all help ~

Last edited by andrea (2005-12-14 04:20:32)

Offline

#2 2005-12-14 05:39:23

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: .htaccess and article section not working with stats

Ah! the old but unresolved yet issue with mod_rewrite and some password protected directories in some host enviroments.

andrea, i hope you find a solution and come back and post it here.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#3 2005-12-14 05:45:24

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: .htaccess and article section not working with stats

BTW: Very nice house ! I would love to live in a place like that.
(please, tell me if you want I remove the link to your old geocities website…).


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB