Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-02-07 22:27:06

coleh
Member
From: Edinburgh, UK
Registered: 2007-08-16
Posts: 28
Website

[resolved] [Solved] Clean URL issues

Evening all

I am working on a textpattern site for a client which is using powweb for hosting.
All fine except file downloads are returning 404s. Am using Clean URLs and the diagnostic is returning a ‘Clean URL test failed.’ message, even though upon testing the (clean) URLs seem to be working fine (except for the file downloads).
Anyone know why the Clean URL for file downloads isn’t working but it is for the rest of the site?
.htaccess attached below:

Cole

###############

Options +FollowSymLinks
Options -Indexes

<IfModule mod_rewrite.c> RewriteEngine On RewriteBase /

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

RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^(.*) index.php

RewriteCond %{HTTP:Authorization} !^$ RewriteRule .* – [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>

#php_value register_globals 0


Jack of all trades, Doctor of one

Offline

#2 2009-02-10 10:13:09

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

Re: [resolved] [Solved] Clean URL issues

Is the 404 message generated by TXP or is it a standard webserver 404 message?
Please post your full TXP diagnostic results here.

Offline

#3 2009-02-10 10:23:54

coleh
Member
From: Edinburgh, UK
Registered: 2007-08-16
Posts: 28
Website

Re: [resolved] [Solved] Clean URL issues

Hi Ruud
The response is normal server 404 (not txp).

Diagnostics as follows – hope makes things clearer:

###################################

Textpattern version: 4.0.7 (r3033)
Last Update: 2009-01-14 21:43:30/2009-01-23 01:34:56
Document root: /home/users/web/b2466/pow.brightonspc/draft (/hermes/web09/b2466/pow.brightonspc/draft)
$path_to_site: /hermes/web09/b2466/pow.brightonspc/draft
Textpattern path: /hermes/web09/b2466/pow.brightonspc/draft/textpattern
Permanent link mode: section_id_title
Temporary directory path: /home/users/web/b2466/pow.brightonspc/draft/textpattern/tmp
Site URL: draft.brightonschurch.org.uk
TZ: EST5EDT
PHP version: 5.2.1
GD Image Library: bundled (2.0.28 compatible); supported formats: GIF, JPG, PNG.
Server Local Time: 2009-02-10 05:22:33
MySQL: 5.0.45-log
Locale: English_United Kingdom.1252
Server: Apache
PHP Server API: cgi
RFC 2616 headers: 0
Server OS: Linux 2.6.24.7
Active plugins: Postmaster-0.4.4m, Postmaster Library-0.2.3m, rah_status_dropdown-0.1, rah_section_titles-0.1.2, rss_admin_show_adv_opts-0.3, zem_contact_lang-4.0.3.6, zem_contact_reborn-4.0.3.20, smd_calendar-0.34, hak_tinymce-0.7.4, sgb_url_handler-0.1.8.4, sgb_error_documents-0.1.2.2, rvm_if_this_article-0.1, asy_wondertag-0.5, md_versions-0.81m, rss_admin_db_manager-4.3

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]

RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^(.*) index.php

RewriteCond %{HTTP:Authorization} !^$ RewriteRule .* – [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>

#php_value register_globals 0

————————————


Jack of all trades, Doctor of one

Offline

#4 2009-02-10 12:19:20

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

Re: [resolved] [Solved] Clean URL issues

Try disabling the plugins, specifically the two sgb_* plugins.

Offline

#5 2009-02-10 12:25:21

coleh
Member
From: Edinburgh, UK
Registered: 2007-08-16
Posts: 28
Website

Re: [resolved] [Solved] Clean URL issues

Genius – can’t believe I overlooked that.
You sir are a star – I, on the other hand, am an utter numpty!

Many thanks Ruud


Jack of all trades, Doctor of one

Offline

Board footer

Powered by FluxBB