Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Post your Clean URL .htaccess tweaks here
> on hosteurope server.
.htaccess is a “feature” that is only supported for webpack L and larger at hosteurope (at least in germany). If you have a smaller webpack (like M) you can’t use .htaccess and thus currently can only use messy urls.
btw: This thread is meant for posting solutions, so that people can quickly scan for answers, rather than having to read through troubleshootings, questions, comments etc.
Offline
#17 2005-10-25 21:46:23
- SamuelJohn
- New Member
- Registered: 2005-06-01
- Posts: 8
Re: Post your Clean URL .htaccess tweaks here
I use a german provider (www.domainbox.de) and even phpinfo(); told me that mod_rewrite was ON, I always got 403 Errors when accessing any of my sites with the .htaccess. After writing an email to the support team, they activated mod_rewrite, and it is working with the .htacces fine now.
I just want to say, that phpinfo(); telling you mod_rewrite=on, might not mean that mod_rewrite is working properbly. The Apache was not configured to follow symlinks, the support wrote.
Now it’s woking fine.
Offline
#18 2005-10-26 02:13:53
- jackson
- Member
- Registered: 2005-10-01
- Posts: 14
Re: Post your Clean URL .htaccess tweaks here
This is not TXP specific, so hopefully it’s ok if I post it. I think it might be helpful to people in the future.
I was struggling with getting .htaccess working for TXP on my Debian Sarge box. The mod_rewrite module was loaded and everything seemed to be ok. Messy URL’s worked, but not clean.
After Googling for ages, I came across a comment at the bottom of this article at Debian Administration:
http://www.debian-administration.org/articles/136
The poster states that the problem is that the “AllowOverride” setting for the DocumentRoot directory as set forth in /etc/apache/httpd.conf should be changed from “None” to “All”. So, for example, that section of my httpd.conf file now looks like this:
=====- This should be changed to whatever you set DocumentRoot to.
- {Directory /var/www}
- This may also be “None”, “All”, or any combination of “Indexes”,
- “Includes”, “FollowSymLinks”, “ExecCGI”, or “MultiViews”.
; - Note that “MultiViews” must be named explicitly —- “Options All”
- doesn’t give it to you.
- Options Indexes Includes FollowSymLinks MultiViews
- This controls which options the .htaccess files in directories can
- override. Can also be “All”, or any combination of “Options”, “FileInfo”,
- “AuthConfig”, and “Limit”
- AllowOverride All
- Controls who can get stuff from this server.
;
Order allow,deny
Allow from all
{/Directory}
=====
(I changed the ‘#’ comment indicator to a ‘;’ since textile was parsing the ‘#’ as a numbered list and I also changed the <> brackets into {} since the former were being parsed as HTML).
Changing the AllowOverride from None to All fixed my problem and now clean URL’s work fine with the default TXP .htaccess. Hope this helps somebody.
Offline
#19 2005-10-30 23:44:06
- xylpho
- Member
- From: Brest, France
- Registered: 2005-10-24
- Posts: 28
Re: Post your Clean URL .htaccess tweaks here
- This controls which options the .htaccess files in directories can
- override. Can also be “All”, or any combination of “Options”, “FileInfo”,
- “AuthConfig”, and “Limit”
- AllowOverride All
Changing this on my Mac (10.4.2) do the job. Great!!!
don’t eat yellow snow
Offline
#20 2006-01-15 23:28:42
- animoller
- Member
- Registered: 2004-04-19
- Posts: 22
Re: Post your Clean URL .htaccess tweaks here
I’m with a webserver at The Planet and I can get clean URLs to work, but not ALL of them. Is this the reason for this thread, or rather to get them to work at all?
Because I have the latest version of Textpattern installed and I can’t seem to get /year/month/day/title URL mode to work, but all the other clean URL modes work. Funny thing is, I have 4.0.1 installed on the same server using /year/month/day/title but that .htaccess file doesn’t work with 4.0.3. Argh!
Offline
#21 2006-01-31 21:55:27
- Brutal
- Member
- Registered: 2005-01-28
- Posts: 14
Re: Post your Clean URL .htaccess tweaks here
DirectoryIndex index.html index.php
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) – [PT,L]
RewriteRule ^(.*) index.php
How come this doesn’t work? I want the rewriteengine on, but I also want to be able to but a temporary index.html in my root to keep others from automatically accessing my index.php while I work on it..
Offline
Re: Post your Clean URL .htaccess tweaks here
Clean URL with Apach2Triad bundle voor local PC
Last week I downloaded Textpattern and tried to get it working on my PC.
I took some time for me to get clean URL’s working. I have the WAMP bundle Apache2Triad on my local XP machine (Apache, mySql, php and much more installed in one single installation; very usefull!!).
I had to modify the httpd.conf file; and changed the lines:
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
into:
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory
Then followed the suggestions in the faq, and voila, it worked.
Offline
#23 2006-03-18 19:33:38
- lornajane
- New Member
- Registered: 2006-03-18
- Posts: 5
Re: Post your Clean URL .htaccess tweaks here
I have been going round in circles with the rewrite rules on a new 4.0.3 textpattern installation all afternoon. I don’t want to use sections on my site, as its only a demo of textpattern itself … however if articles are not in sections the rewrite rules fail!
I hope this saves someone the time I just spent wandering through the code debugging.
Offline
Re: Post your Clean URL .htaccess tweaks here
Does anyone know the way to get clean URLs with Netfirms hosting? I’ve been looking all over and so far nothing. :(
Offline
Re: Post your Clean URL .htaccess tweaks here
This is what I have in the “diagnostics” tab:
<code>Textpattern version: 4.0.3 (r1188)
last_update: 2006-01-22 07:55:13/2006-01-24 06:45:16
Document root: /home/******/public_html
$path_to_site: /home/******/public_html
Textpattern path: /home/******/public_html/textpattern-folder
Permanent link mode: section_title
Temp folder: /home/******/public_html/textpattern-folder/tmp
Site URL: orangescale.net
PHP version: 4.4.1
Register globals: 1
Server time: 2006-03-30 12:55:49
MySQL: 4.1.14-standard
Locale: English_United Kingdom.1252
Server: Apache/1.3.34 (Unix) mod_fastcgi/2.4.2 mod_gzip/1.3.26.1a mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_ssl/2.8.25 OpenSSL/0.9.7a PHP-CGI/0.1b
PHP mode: cgi
Operating System: Linux 2.6.9-22.0.1.ELsmp
.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]
#This path should match the relative url of your Textpattern install
RewriteBase /
RewriteRule ^(.*) index.php
</IfModule>
#php_value register_globals 0
———————————— </code>
Orangescale.NET – Personal Journal using Textpattern
Orangescale.COM – Design, portfolio, pick-and-go, and more
Offline
Re: Post your Clean URL .htaccess tweaks here
OSX 10.4 Clean Urls
Does anyone have a step-by-step on how to take a stock Tiger (OSX 10.4) install and get clean urls working? I having a devil of a time, and yes I’ve searched the forums and tried many of the sollutions here and TXD forums.
Offline
#27 2006-05-16 15:29:03
- -P-
- Member

- From: Finland
- Registered: 2005-09-10
- Posts: 211
Re: Post your Clean URL .htaccess tweaks here
Okay, first time problems with clean urls here too.
<code>Textpatternin versio: 4.0.3 (r1188)
last_update: 2006-05-16 12:11:34/2006-05-15 13:17:51
Dokumenttien juurihakemisto: /home/domainname/www (/usr/home/domainname/www)
$path_to_site: /usr/home/domainname/www/uusi
Polku Textpatterniin: /usr/home/domainname/www/uusi/textpattern
Kestolinkin muoto: title_only
Temp-hakemisto: /var/tmp
Sivuston URL: www.domain.com/uusi
PHP:n versio: 4.4.1
Register globals: 1
server_time: 2006-05-16 17:52:15
MySQL: 4.1.15
Locale: fi_FI.UTF-8
Palvelin: Apache/2
Apachen versio: Apache/2
php_sapi_mode: apache2handler
os_version: FreeBSD 5.4-RELEASE-p6
.htaccess sisältö:
————————————
#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</code>
Usually I host TXP installations on my own server and havent had any prob. Messy urls seem to work on this other server but I really need clean urls. I have not much experience with .htaccess rules, tested few solutions posted in this thread but was not able to get them to work.
So is there something I can do or are the settings needed host dependant?
Site is going to stay during development in subfolder /uusi/ but eventually when everything is set it will be moved to root www.domain.com
Tested ones from the faq also but did not help
<code>.htaccess sisältö:
————————————
#DirectoryIndex index.php index.html
Options +FollowSymLinks
RewriteBase /uusi/
<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
————————————</code>
Offline
Re: Post your Clean URL .htaccess tweaks here
mrdale wrote:
OSX 10.4 Clean Urls
Does anyone have a step-by-step on how to take a stock Tiger (OSX 10.4) install and get clean urls working? I having a devil of a time, and yes I’ve searched the forums and tried many of the sollutions here and TXD forums.
I’m sure you’ve probably figured this out by now, but in case anyone else has this problem:
1. Locate your configuration file for Apache – not httpd.conf – it should be in /etc/httpd/users – named something like yourusername.conf
2. In your trusty text editor change the line that begins AllowOverride to AllowOverride All
3. In the same trusty text editor open the .htaccess file included with Textpattern.
4. Uncomment the first 3 lines (remove the # symbol) and change the third line to represent the path to your site, for example: RewriteBase /~yourusername
That has worked for me on a couple of 10.4 Macs. Of course to get the full functionality of Textpattern working on OSX you have to recompile PHP with the GD libraries, but I’ll leave that for another day :)
Travel Atlas * Org | Start Somewhere
Offline