Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
4.0.4 Clean URLs issues
Hi folks,
I have a 4.0.3 install on a site and a 4.0.4 install on another site, each on the same host (aplus.net). I have the exact same .htaccess on each (see below) and the clean urls are working on the 4.0.3 but not on the 4.0.4 install. I don’t know anything about .htaccess files, and I can honestly not think of any other variable that could be different between the two. Any help or ideas are greatly appreciated.
Textpattern version: 4.0.4 (r1956)
Last Update: 2006-11-10 01:08:10/2006-11-10 00:56:25
Document root: /home/com/napostl/html (/home/u3/janineadams/html)
$path_to_site: /home/u3/janineadams/html
Textpattern path: /home/u3/janineadams/html/textpattern
Permanent link mode: title_only
Temporary directory path: /home/u3/janineadams/html/textpattern/tmp
Site URL: www.napostl.com
PHP version: 5.1.6
Server Local Time: 2006-11-10 19:59:01
MySQL: 4.1.21-log
Locale: en_GB.UTF-8
Server: Apache/1.3.37 (Unix)
PHP Server API: cgi-fcgi
rfc2616_headers:
Server OS: FreeBSD 6.2-PRERELEASE
Pre-flight check:
————————————
clean_url_test_failed
————————————
.htaccess file contents:
————————————
#DirectoryIndex index.php index.html
#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
————————————
For thoroughness’ sake, here is the diagnostics readout from the 4.0.3 site. Sorry for the extra-long post:
Textpattern version: 4.0.3 (r1188)
last_update: 2006-09-19 22:18:14/2006-09-19 21:33:26
Document root: /home/org/mediationsjournal/html (/home/u4/mediations/html)
$path_to_site: /home/u4/mediations/html
Textpattern path: /home/u4/mediations/html/textpattern
Permanent link mode: section_id_title
Temp folder: /home/u4/mediations/html/textpattern/tmp
Site URL: www.mediationsjournal.org
PHP version: 5.1.6
Server time: 2006-11-10 20:17:39
MySQL: 4.1.21-log
Locale: en_GB.UTF-8
Server: Apache/1.3.37 (Unix)
PHP mode: cgi-fcgi
Operating System: FreeBSD 6.2-PRERELEASE
.htaccess file contents:
————————————
#DirectoryIndex index.php index.html
#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
————————————
Last edited by nabrown78 (2006-11-11 04:20:23)
Offline
Re: 4.0.4 Clean URLs issues
There is a difference between the link modes of each installation. You could change the link mode on 4.04 and see what happens. FAQ page link:
http://textpattern.com/faq/66/404-error-when-linking-to-article-pages
Offline
#3 2006-11-11 06:38:15
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: 4.0.4 Clean URLs issues
Site URL: www.napostl.com
The site at that URL appears to be static HTML, not a Textpattern installation. See the FAQ.
Alex
Offline
Re: 4.0.4 Clean URLs issues
The site at that URL appears to be static HTML, not a Textpattern installation. See the FAQ.
Thanks for looking into my problem a bit. I intended to leave the static page ‘index.htm’ on the server while I developed the site in Textpattern. I tried deleting this page, so that visiting www.napostl.com takes you straight to Textpattern’s index.php page, but clean urls still don’t work.
Offline
Re: 4.0.4 Clean URLs issues
There is a difference between the link modes of each installation.
Thanks jstubbs, I just noticed that difference too. But, I then tried every clean url mode available, and they all fail. This whole thing makes me afraid to upgrade my other site to 4.04…
I wonder if I’d have any luck calling my hosting company. Hm.
Last edited by nabrown78 (2006-11-11 16:43:08)
Offline
#6 2006-11-11 20:33:57
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: 4.0.4 Clean URLs issues
I wonder if I’d have any luck calling my hosting company. Hm.
The two domains appear to be on different servers (at least, they have different IP addresses). The server configuration is probably different. Your hosting company might be able to help. You should try the .htaccess variations recommended in the FAQ.
For the record, fetching a clean URL gets an Apache 404 error.
Last edited by zem (2006-11-11 20:35:48)
Alex
Offline
Re: 4.0.4 Clean URLs issues
Doh! Permissions! So – after trying a few different .htaccess permutations, I tried just a basic test to see if mod-rewrite was working on my servers. Though I knew it was installed, it did not appear to be reading the .htaccess files. Then I checked the permissions on them and they were all set to 000! Oy…so I set them to 644 and everything works now. Mystery solved. Thanks for the above responses anyway. I love textpattern!
Offline
Pages: 1