Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-04-14 18:24:34

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Post your Clean URL .htaccess tweaks here

In order to make Clean URLs as widely available as possible, we need information from as many different servers environments as possible.

If you’re using RC3 or SVN current, and had to make changes to your .htaccess file in order for Clean URLs to work, please post the details here. What we need:

1. The name of your hosting company (e.g. 1and1)

2. A copy of your diagnostic info (admin > diagnostics) – just the low detail version. This should include the contents of your .htaccess file (if not, post that too).

3. Any other server configuration or Textpattern adjustments that were necessary to make it work.

We’d especially like to hear from any IIS users who have managed to make Clean URLs work.


Alex

Offline

#2 2005-04-14 18:59:01

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: Post your Clean URL .htaccess tweaks here

Hosting : OVH on shared host.

Version de Textpattern : 1.0rc3
Document racine : /home/shadowfr/www
$path_to_site: /home/shadowfr/www/txp
Chemin d’accès à Textpattern : /home/shadowfr/www/txp/textpattern
Format des URL: section_title
Répertoire temporaire: /home/shadowfr/www/txp/textpattern/tmp
URL du site : www.shadowfrance.net/txp
Version de PHP : 4.3.11
Register globals PHP : 1
Magic quotes PHP : 1/0
Locale: fr_FR
Serveur : Apache

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

RewriteRule ^(.) */txp/index.php

The /txp/index.php is the edited one, as per ‘this forum thread”:http://forum.textpattern.com/viewtopic.php?id=6484 . Aka, mod_ort is used over mod_rewrite, so OVH users need to specify by hand the base path. Details are in their FAQ.

Offline

#3 2005-04-14 19:00:36

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: Post your Clean URL .htaccess tweaks here

Argh, forum broken can’t edit, and Textile is buged. It’s /txp/index.php , remove the *.

Offline

#4 2005-04-15 20:22:52

larf
Archived Plugin Author
Registered: 2005-01-31
Posts: 159
Website

Re: Post your Clean URL .htaccess tweaks here

I had to add “RewriteBase /

Offline

#5 2005-04-18 16:41:46

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Post your Clean URL .htaccess tweaks here

Looks like some people benefit from this:

DirectoryIndex index.php index.html


Alex

Offline

#6 2005-04-19 05:24:03

saccade
Plugin Author
From: Neubeuern, Germany
Registered: 2004-11-05
Posts: 521

Re: Post your Clean URL .htaccess tweaks here

Hello,

Hosting: Schlund & Partner, Germany, WebPlus-package.
As far as I know it is a part of 1and1.

I also got a Error-500-message using the .htaccess-settings provided by the textpattern setup.

original .htaccess-file settings:

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

RewriteRule ^(.*) index.php

With that .htaccess-file in my root directory nothing worked, only an error-500-message showed up.
Without any .htaccess-file and switched to messy-mode everything was fine – but of course messy.

I mailed to my provider support, but they asked “which rule I regard to” and from where I got my .htaccess-information.

Now I tried zems answer to soulship and mrdale (from New htaccess gives 500 Server Error “change the last line to use an absolute path

Offline

#7 2005-05-03 00:12:23

edburdo
Member
Registered: 2004-09-20
Posts: 79
Website

Re: Post your Clean URL .htaccess tweaks here

Here is what I use… 1and1 servers, TXP 1.0RC3

RewriteBase /
RewriteEngine On

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

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

AddDefaultCharset UTF-8


Eric

Offline

#8 2005-05-24 09:39:18

stevechamp
Member
Registered: 2004-08-13
Posts: 12

Re: Post your Clean URL .htaccess tweaks here

I would especially like to hear from any Zeus users out there who’ve got clean url RC3 to work, & what they did with their .htaccess

Offline

#9 2005-08-21 11:39:46

peterj
Member
From: Melbourne, Australia
Registered: 2005-06-02
Posts: 99

Re: Post your Clean URL .htaccess tweaks here

ZEUS SERVER

Being a very newbie (hello world) I thought it was all my fault for many days – no htaccess configurations seemed to help. Turned out the webhost, to whom the client is committed, uses Zeus and have it well locked down. After trying all the Zeus hints – http://forum.textpattern.com/viewtopic.php?id=3630 – I threatened to ditch the webhost.

That finally got me onto ‘elevated support’. After much pissing about they finally volunteered to write an access rule that would send all requests to index.php (except for requests for pages in /textpattern/ or /files/ or /images/).

So that got fixed, but other problems keep cropping up that I put down to Zeus glitches as noone else is talking about them. (ie messy URLs not working, only clean – which makes all category lists and internal hyperlinks misbehave – more on that elsewhere if I can figure it out).

Following is part of an email from the support that may be of use to others attempting to get TXP on Zeus.

“Content Negotation will not provide the solution you are looking for as we do not use mime types to differentiate php files from other files. Due to the way in which we setup our PHP environment, PHP has to be invoked by mapping specific file extensions to be parsed by PHP. As the system doesnt allow for a default handler we cannot facilitate your request via that method.

HTAccess rewrites are an Apache specfic function to mod_rewrite so do not work under our Zeus environment. Zeus provides a similar feature called rewrites but is not managabile via the htaccess file itself.

We are in the process of writting an interface to allow clients to manage this from a central point but currently this has to be done by hand by System Adminstrators. If you want to forward me the htaccess file provided by your CMS, I will convert the rules to Zeus format for you and implement server side.”

DIAGNOSTIC :

Textpattern version: 1.0rc3
Document root: /clientdata/www/au/x/xxxxx.com.au
$path_to_site: /clientdata/www/au/x/xxxxx.com.au
Textpattern path: /clientdata/www/au/x/xxxxx.com.au/textpattern
Permanent link mode: section_title
Temp folder: /www/clientweb/au/x/xxxxx.com.au/textpattern/tmp
Site URL: www.xxxxx.com.au
PHP version: 4.4.0
Register globals: 1
Magic quotes: 1/0
Locale: en_GB
Server: Zeus/4.3

.htaccess file contents:
————————————

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

Offline

#10 2005-09-23 12:04:08

mkorsakov
New Member
From: Dortmund
Registered: 2005-07-15
Posts: 5
Website

Re: Post your Clean URL .htaccess tweaks here

> lingsb wrote:
<blockquote>
.htaccess file contents: <pre><code>
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase /

RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L] RewriteRule ^(.*) index.php </IfModule> </code></pre> I think the main thing to be added to the default .htaccess should be ‘RewriteBase /’, otherwise it looks for the whole document root in the URL. The only advice needed is that if the .htaccess file and index.php file are in different directories, the RewriteBase should give the relative path of the directory containing index.php:

eg:<pre><code>
/.htaccess
/txp/index.php
</code></pre>
should have <code>‘RewriteBase /txp/’</code>
</blockquote>
Thanx a lot. This works with Textpattern 4 on an 1and1-Server:
<pre><code>RewriteEngine On
RewriteBase /

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

RewriteRule ^(.*) index.php</code></pre>

[mkorsakov]

Offline

Board footer

Powered by FluxBB