Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#76 2008-10-21 05:37:43
- dadave
- New Member
- Registered: 2007-03-21
- Posts: 6
Re: Post your Clean URL .htaccess tweaks here
kvnmcwebn wrote:
Clean urls dont seem to work properly on subdomains on media temple grid hosting. But they work allright on proper domains.
There is a thread on the media user temple forum about this but its not resolved yet.
edited to say ive got the mt grid serivice hosting running clean urls on both domains and subdomains
On a proper domain you can use the standard .htaccess file.
On subdomains it doesnt work BUT this one from Mr. Dale does work:
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
the above htaccess file returns a 404 error on media temple gridserver. does anyone please have advice on how to run clean url’s on a domain like this:
imgoingcrazy.domain.com
thanks very much.
Last edited by dadave (2008-10-21 05:38:23)
Offline
#77 2009-10-04 22:21:23
- tbJohnson
- Member
- Registered: 2009-10-02
- Posts: 10
Re: Post your Clean URL .htaccess tweaks here
my old .htaccess was this..
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
Options +FollowSymLinks
RewriteEngine On
When I used the default .htaccess from Textpattern 4.2.0, I couldn’t access my databases, are their any features of the new .htaccess that I am missing by using my old .htaccess? Everything seems to work, so should I just be happy it works?
Offline
#78 2009-10-05 21:27:00
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Post your Clean URL .htaccess tweaks here
Does it work if you just uncomment the first two lines of the default .htaccess? Like this:
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]
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*) index.php
RewriteCond %{HTTP:Authorization} !^$
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>
#php_value register_globals 0
BTW this thread is not meant for support questions, next time please use the How do I… forum. Thanks.
Offline
#79 2009-10-22 23:41:02
- jcclow
- New Member
- Registered: 2009-10-22
- Posts: 1
Re: Post your Clean URL .htaccess tweaks here
I can confirm this works for 1and1 in the states. Thanks mrdale!
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
Offline
#80 2009-11-17 14:36:23
- eritropel
- Member
- From: Hamburg
- Registered: 2009-08-27
- Posts: 26
Re: Post your Clean URL .htaccess tweaks here
jcclow schrieb:
I can confirm this works for 1and1 in the states. Thanks mrdale!
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
Thank You! This works also for 1&1 germany.
(edited code block escape. -Els)
Last edited by els (2009-11-17 17:39:07)
Offline
#81 2009-11-25 21:38:43
- B-Rated
- New Member
- Registered: 2009-11-25
- Posts: 1
Re: Post your Clean URL .htaccess tweaks here
I have been struggling to get clean urls working on a TextPattern instance running on Amazon’s EC2.
.htaccess tweaks aside. I have spent a couple of hours struggling with tweaks until I found that my problem was that the change to apache2.conf was being overridden by settings in /etc/apache2/sites-available/default. Once I opened default, I found:
<Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory>
I changed this entry to:
<Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride FileInfo Order allow,deny allow from all </Directory>
Now the default .htaccess file works like a charm. This article on apache2’s scheme for hosting multiple websites helped me pin this down: http://linuxhelp.blogspot.com/2006/02/host-websites-on-your-local-machine.html
Offline
#82 2009-12-22 22:16:34
- amavai
- Member
- Registered: 2009-08-25
- Posts: 37
Re: Post your Clean URL .htaccess tweaks here
.
Last edited by amavai (2010-02-06 12:47:03)
Offline
#83 2009-12-24 07:29:03
- Carol
- New Member
- Registered: 2009-12-24
- Posts: 1
Re: Post your Clean URL .htaccess tweaks here
Posting for a shared hosting – Telushosting (Western Canada) – success after some trial and error
Pre-flight check
All checks passed!
.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
Last edited by Carol (2009-12-24 07:31:00)
Offline
#84 2010-01-11 02:44:04
- stefbourdon
- New Member
- Registered: 2010-01-11
- Posts: 1
Re: Post your Clean URL .htaccess tweaks here
This works with Textpattern 4.2.0 for accounts hosted on priorweb (Belgium) (found on joomla support forum)
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
Offline
#85 2010-02-11 06:54:41
- rlube
- New Member
- Registered: 2010-02-10
- Posts: 4
Re: Post your Clean URL .htaccess tweaks here
I ported from Blogger (but kept content on my delegated server, via ftp from Google), and want to retain my feed urls. Using same full-feature ISP, want all URLs to carry over. Blogger used atom.xml and rss.xml in the root folder. I’m also using gbp_permanent_links plugin to handle clean urls of form domain/year/month/url_title
<IfModule mod_rewrite.c> RewriteEngine On
RewriteCond %{HTTP:Authorization} !^$ RewriteRule .* – [E=REMOTE_USER:%{HTTP:Authorization}]
RewriteCond %{REQUEST_URI} =/rss.xml RewriteRule ^(.*) index.php?rss=1 [L]
RewriteCond %{REQUEST_URI} =/atom.xml RewriteRule ^(.*) index.php?atom=1 [L]
RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]
RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^(.*) index.php
</IfModule>
(sorry can’t figure out linewraps in this forum…)
Last edited by rlube (2010-02-11 07:01:57)
Offline
#86 2010-03-01 01:05:11
- milosevic
- Member

- From: Madrid, Spain
- Registered: 2005-09-19
- Posts: 390
Re: Post your Clean URL .htaccess tweaks here
Hello:
I’m desperate about de .htacces file at OVH
I tried all examples in this forum and I allways receive a 403 or 500 code.
Does any one have a clean URL textpattern driven site at OVH hosting?
<txp:rocks/>
Offline
#87 2010-03-08 16:08:20
- rbrtdowney
- New Member
- Registered: 2010-03-06
- Posts: 1
Re: Post your Clean URL .htaccess tweaks here
I can confirm that mrdale’s method works on a2 hosting as of 3/7/2010
mrdale wrote:
>pastafiend
I can confirm that the following works at 1and1
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
Offline
Re: Post your Clean URL .htaccess tweaks here
Like stevechamp and peterj from page 1 of this post, but now in 2010 not 2005, I too am looking for .htaccess rules written to suit a Zeus hosting environment.
The hosting company has asked “Please tell us what exactly are you trying to accomplish”.
In the hope that they wil be able to write the Zeus rules, can anyone tell me in plain language what the default rules* are doing, I am a bit of a lightweight when it comes to understanding regular expressions etc?
Thanks lots in advance for any help. Cheers, -Alan
*http://rpc.textpattern.com/help/?item=htaccess_missing&language=en-gb
At LAST I’ve cheerfully donated to the core devs at #TXP. I only wish I were able to give more. Thanks to the devs and ALL fellow TXPers. -A
Offline
Re: Post your Clean URL .htaccess tweaks here
- (
At LAST I’ve cheerfully donated to the core devs at #TXP. I only wish I were able to give more. Thanks to the devs and ALL fellow TXPers. -A
Offline
#90 2010-03-13 22:40:29
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Post your Clean URL .htaccess tweaks here
This thread is for solutions, not for questions, so my guess is you’d better start a new topic to attract more attention…
Offline