Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-03-29 20:42:50

Bradleyscott
New Member
From: Indianapolis, IN
Registered: 2005-09-21
Posts: 8
Website

Another Clean URL issue

I know this topic has been asked to death, however, after searching the forums for the past two days and googling a lot of queries on the topic, I am still falling short on getting the clean URLs working.

To start off with, I have a dedicated server running the following setup:

———————————————————————————————-

CentOS 4
Apache 2.0.52
MySQL 4.1.12
CP+ 2.5.5
php 4.3.9

———————————————————————————————-

My Diagnostics are as follows:

———————————————————————————————-

Textpattern version: 4.0.3 (r1188)
last_update: 2006-03-29 01:57:54/2006-03-29 01:54:29
Document root: /home/thedrive/public_html
$path_to_site: /home/thedrive/public_html
Textpattern path: /home/thedrive/public_html/textpattern
Permanent link mode: id_title
Temp folder: /tmp
Site URL: thedrivewithjmv.com
PHP version: 4.3.9
server_time: 2006-03-29 15:40:12
MySQL: 4.1.12
Locale: en_US.UTF-8
Server: Apache/2.0.52 (CentOS)
Apache version: Apache/2.0.52 (CentOS)
php_sapi_mode: apache2handler
os_version: Linux 2.6.9-11.EL

.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/$1 </IfModule>

#php_value register_globals 0

———————————————————————————————-

Of course the .htaccess has the following:

———————————————————————————————-

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

———————————————————————————————-

Now I have tried uncommenting and commenting the RewriteBase, DirectoryIndex, and Options +FollowSymLinks. I saw somewhere else where someone added a /$1 to the end of RewriteRule^(.*) index.php/

I have also tried each and every clean url type.

I am at a loss on how to proceed from this point on.

Thanks for any help,

Brad

Last edited by Bradleyscott (2006-03-29 20:44:45)

Offline

#2 2006-03-30 04:57:29

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Another Clean URL issue

What do you get instead? 404 errors? Other errors? Warnings?

Offline

#3 2006-03-30 05:07:26

Bradleyscott
New Member
From: Indianapolis, IN
Registered: 2005-09-21
Posts: 8
Website

Re: Another Clean URL issue

When I try and follow the permalinks I get the dreaded 404 error.

when messy is on, I get the article.

Offline

#4 2006-03-30 05:17:36

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Another Clean URL issue

Okay, try:

#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
 RewriteRule ^(.+) - [PT,L]

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

#php_value register_globals 0

(comment out rewritebase, add a slash in front of index.php.

Offline

#5 2006-03-30 05:41:14

Bradleyscott
New Member
From: Indianapolis, IN
Registered: 2005-09-21
Posts: 8
Website

Re: Another Clean URL issue

still getting the 404 error. this is kind of frustrating because I feel that it should be working. I can’t think of anything that it could be. I have been doing my research on Mod_rewrite, etc… and I am at a loss right now, but I do thank you for the suggestions, hopefully we can come up with something at some point.

Offline

#6 2006-03-30 08:20:44

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Another Clean URL issue

You can try this suggestion to check whether mod_rewrite is working at all for you.

Offline

#7 2006-03-30 08:57:13

Bradleyscott
New Member
From: Indianapolis, IN
Registered: 2005-09-21
Posts: 8
Website

Re: Another Clean URL issue

Interestingly enough, with messy URLs everything still works. With Clean URLs, I am stuck back at square one… the home page shows up as normal but the permalinks have a 404 error.

Offline

#8 2006-03-30 10:51:32

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Another Clean URL issue

Yes, messy urls will always work (unless the server is seriously broken). Clean urls only work with mod_rewrite, which is why I posted/linked to a suggestion on how to check if the rewrite-rules in .htaccess are parsed/executed in your case.

Offline

#9 2006-03-30 20:13:54

Bradleyscott
New Member
From: Indianapolis, IN
Registered: 2005-09-21
Posts: 8
Website

Re: Another Clean URL issue

Well in that case I continue to get the 404 and according to your post, my server isn’t reading mod-rewrite altogether. So now I am off to the apache forums again to see if I can’t get this thing fixed.

Thanks Spencer and Mary,,

Brad

Offline

Board footer

Powered by FluxBB