Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-07-27 15:50:19

Kevpool1
Member
Registered: 2007-07-06
Posts: 13

Is there any reason based on this server config why Clean URL's do not

here is my server config:

PHP version: 4.4.7
GD Image Library: bundled (2.0.28 compatible); supported formats: GIF, JPG, PNG.
Server Local Time: 2007-07-27 16:40:20
MySQL: 5.0.27-standard
Locale: en_GB.UTF-8
Server: Apache/2.0.55 (Red Hat)
PHP Server API: cgi
RFC 2616 headers:
Server OS: Linux 2.6.9-42.ELsmp

I have tried every version of .htaccess in these forums, but still no luck. I have also had my hosts look into this problem and they do not know why this will not work. Any help would be appreciated, I have read every resource on the TXP site relating to this problem. I have a reseller account with this host and i really do not want to start opening seperate accounts.

Any help would be greatly appreciated.

Offline

#2 2007-07-27 16:02:26

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

Re: Is there any reason based on this server config why Clean URL's do not

Is mod_rewrite activated in Apache and do they allow you to controll rewrite rules using .htaccess?

Offline

#3 2007-07-27 16:11:00

Kevpool1
Member
Registered: 2007-07-06
Posts: 13

Re: Is there any reason based on this server config why Clean URL's do not

yes mod_rewrite is activated and they allow me to use .htaccess.

For example i have used Joomla in the past on the same server which requires .htaccess and mod_rewrite

Offline

#4 2007-07-27 16:36:56

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

Re: Is there any reason based on this server config why Clean URL's do not

Can you show us your TXP diagnostics and also which .htaccess setups you’ve tried and what happened when you tried them?

Offline

#5 2007-07-27 16:44:13

Kevpool1
Member
Registered: 2007-07-06
Posts: 13

Re: Is there any reason based on this server config why Clean URL's do not

I have tried every single htaccess file in this forum post:
http://forum.textpattern.com/viewtopic.php?id=7702

Most of them i got the same result, which failed the test. On some htaccess setup’s i got a 500 server error. What htaccess files produced what result i could not tell you as i have tried so many variations.

Note: I can set myserver to use PHP 4x or 5x and i have tried both, not sure if this would make a difference.

Textpattern version: 4.0.5 (r2466)
Last Update: 2007-07-27 11:21:40/2007-07-27 11:15:48
Document root: /home/sites/spotlightstudio.co.uk/public_html/ (/home/sites/spotlightstudio.co.uk/public_html)
$path_to_site: /home/sites/spotlightstudio.co.uk/public_html
Textpattern path: /home/sites/spotlightstudio.co.uk/public_html/textpattern
Permanent link mode: title_only
Temporary directory path: /home/sites/spotlightstudio.co.uk/public_html/textpattern/tmp
Site URL: www.spotlightstudio.co.uk
PHP version: 4.4.7
GD Image Library: bundled (2.0.28 compatible); supported formats: GIF, JPG, PNG.
Server Local Time: 2007-07-27 17:39:47
MySQL: 5.0.27-standard
Locale: en_GB.UTF-8
Server: Apache/2.0.55 (Red Hat)
PHP Server API: cgi
RFC 2616 headers:
Server OS: Linux 2.6.9-42.ELsmp

Pre-flight check:
————————————
Clean URL test failed.
————————————

.htaccess file contents:
————————————
DirectoryIndex index.php index.html

Options +FollowSymLinks
Options -Indexes

<IfModule mod_rewrite.c> RewriteEngine On RewriteBase /

RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]

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

php_value register_globals 0
————————————

Offline

#6 2007-07-27 17:35:31

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

Re: Is there any reason based on this server config why Clean URL's do not

Note: I can set myserver to use PHP 4x or 5x and i have tried both, not sure if this would make a difference.

That does not affect URL rewriting.

Most of them i got the same result, which failed the test. On some htaccess setup’s i got a 500 server error. What htaccess files produced what result i could not tell you as i have tried so many variations.

Then you’ll have to try them again and document what happens, otherwise it’ll be impossible for us to determine what the problem could be.

Offline

#7 2007-07-27 17:39:10

Kevpool1
Member
Registered: 2007-07-06
Posts: 13

Re: Is there any reason based on this server config why Clean URL's do not

Ok then i will go through them again, talk next month! No really i will do it now and get back to you a.s.a.p

Thanks for your help

Offline

#8 2007-07-27 18:08:59

Kevpool1
Member
Registered: 2007-07-06
Posts: 13

Re: Is there any reason based on this server config why Clean URL's do not

Tried this one with relative and absolute paths as suggested in forum.

Internal Server Error 500

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) – [PT,L]

RewriteRule ^(.) /index.php

——————————————————————————————
Internal Server Error 500

RewriteBase /
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d

RewriteRule ^(.+) – [PT,L]
RewriteRule ^(.*) index.php

AddDefaultCharset UTF-8
———————————————————————————————
500 internal Server Error
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) – [PT,L]
RewriteRule ^(.*) index.php
</IfModule>
—————————————————————————————————

500 internal Server Error

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) – [PT,L]

RewriteRule ^(.*) index.php

————————————————————————————————
500 internal Server Error

DirectoryIndex index.php index.html
Options +FollowSymLinks
RewriteBase /p

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) – [PT,L]

RewriteRule ^(.*) index.php
————————————————————————————————-
500 Internal Server Error

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) – [PT,L]

RewriteRule ^(.*) index.php
—————————————————————————-
500 internal Server Error

RewriteBase /

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

#This path should match the relative url of your Textpattern install

RewriteBase /
RewriteRule ^(.*) index.php

</IfModule>

#php_value register_globals 0
———————————————————————————————————————
Clean URL test failed

#DirectoryIndex index.php index.html

#Options +FollowSymLinks
#Options -Indexes

<IfModule mod_rewrite.c> RewriteEngine On #RewriteBase /relative/web/path/

RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]

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

#php_value register_globals 0
———————————————————————————————————————-
500 Internal Server Error
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) – [PT,L]

php_value register_globals off

RewriteRule ^(.*) index.php
————————————————————————————————————
500 Internal Server Error
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) – [PT,L]
RewriteRule ^(.*) index.php/$1
——————————————————————————————————

Clean Url Failed

#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
————————————————————————————————————

That is all of them, there are more in the forum but some are duplicated. Some might be duplicated in this post but i have done my best not to duplicate them.

Offline

#9 2007-07-27 18:49:29

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

Re: Is there any reason based on this server config why Clean URL's do not

When you get a 500 error, the apache error logs should be able to tell you what caused the error.

How do you get the 500 error, by visiting the diagnostics tab or by visiting the home page of your TXP website?

Last edited by ruud (2007-07-27 18:50:17)

Offline

#10 2007-07-27 19:01:56

Kevpool1
Member
Registered: 2007-07-06
Posts: 13

Re: Is there any reason based on this server config why Clean URL's do not

Both, i have my home page open in one tab, and the diagnostics page open in the other. When i click a link (backend or front) i get an instant 500 error.

I will take a look in my log files see what is in their.

Offline

#11 2007-07-27 19:07:20

Kevpool1
Member
Registered: 2007-07-06
Posts: 13

Re: Is there any reason based on this server config why Clean URL's do not

Ok my error log files are below, there are lots of these entries i have included one of each type, if that makes sense?

[Fri Jul 27 12:43:05 2007] [error] [client 77.97.77.88] mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use ‘RewriteOptions MaxRedirects’ to increase the limit if neccessary., referer: http://spotlightstudio.co.uk/textpattern/index.php

[Fri Jul 27 13:13:16 2007] [error] [client 77.97.77.88] mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use ‘RewriteOptions MaxRedirects’ to increase the limit if neccessary., referer: http://www.spotlightstudio.co.uk/textpattern/index.php?event=admin

[Fri Jul 27 13:22:53 2007] [alert] [client 77.97.77.88] /home/sites/spotlightstudio.co.uk/public_html/.htaccess: AllowOverride not allowed here, referer: http://www.spotlightstudio.co.uk/textpattern/index.php?event=diag

[Fri Jul 27 18:42:54 2007] [error] [client 77.97.77.88] mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use ‘RewriteOptions MaxRedirects’ to increase the limit if neccessary., referer: http://www.spotlightstudio.co.uk/textpattern/index.php?event=page

[Fri Jul 27 18:45:58 2007] [alert] [client 77.97.77.88] /home/sites/spotlightstudio.co.uk/public_html/.htaccess: <IfModule takes one argument, Container for directives based on existance of specified modules

[Fri Jul 27 18:52:54 2007] [error] [client 77.97.77.88] mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use ‘RewriteOptions MaxRedirects’ to increase the limit if neccessary.

Offline

#12 2007-07-27 22:05:51

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

Re: Is there any reason based on this server config why Clean URL's do not

What happens if you try this one:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php

or

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) /index.php

Last edited by ruud (2007-07-27 22:06:07)

Offline

Board footer

Powered by FluxBB