Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
.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
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.
Offline
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…).
Offline