Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-02-04 22:53:09

nabrown78
Member
From: Northampton, MA, USA
Registered: 2006-10-04
Posts: 294
Website

htaccess troubles with 4.0.6

Hi All,
I have several working 4.0.5 sites hosted on godaddy with the following htaccess file:

.htaccess file contents: 
------------------------
DirectoryIndex index.php index.htm
#Options +FollowSymLinks
RewriteBase /

<IfModule mod_rewrite.c>
 RewriteEngine On
 RewriteCond %{REQUEST_FILENAME} -f [OR]
 RewriteCond %{REQUEST_FILENAME} -d
 RewriteRule ^(.+) - [PT,L]

 RewriteRule ^(.*) index.php
</IfModule>

#php_value register_globals 0

I have just started a new site, with 4.0.6, and that htaccess doesn’t seem to be working…Could the cause lie with the new Textpattern version or should I look elsewhere for the problem? Any help appreciated.
Thanks

Offline

#2 2008-02-04 23:11:31

nabrown78
Member
From: Northampton, MA, USA
Registered: 2006-10-04
Posts: 294
Website

Re: htaccess troubles with 4.0.6

Update – When I replaced 4.0.6 files with the 4.0.5 installation, clean urls do work. So it seems there are changes to the htaccess files that are required for 4.0.6? Apologies for my ignorance – my knowledge of htaccess and server inner-workings is basic at best.

Offline

#3 2008-02-04 23:39:39

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: htaccess troubles with 4.0.6

You can use a 4.0.5 .htaccess file in TXP 4.0.6 just fine. When upgrading, you don’t have to upgrade .htaccess and config.php, although I’m surprised the changes in .htaccess caused your clean urls to break.

Offline

#4 2008-02-05 00:04:18

nabrown78
Member
From: Northampton, MA, USA
Registered: 2006-10-04
Posts: 294
Website

Re: htaccess troubles with 4.0.6

Hi Ruud,
Thanks for your reply. It actually isn’t just that the new htaccess file bundled with 4.0.6 didn’t work, it is that my old htaccess file, which is working on several 4.0.5 sites on the same host (godaddy.com), also didn’t work with 4.0.6. Totally mysterious to me. I guess I will try the upgrade up to 4.0.6 again, and see if it wasn’t some other error I made.

Offline

Board footer

Powered by FluxBB