Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#88 2010-03-09 14:23:02

alanfluff
Member
From: Ottawa, Canada
Registered: 2008-09-15
Posts: 222
Website

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

#89 2010-03-13 22:34:34

alanfluff
Member
From: Ottawa, Canada
Registered: 2008-09-15
Posts: 222
Website

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

#91 2010-03-13 22:42:22

alanfluff
Member
From: Ottawa, Canada
Registered: 2008-09-15
Posts: 222
Website

Re: Post your Clean URL .htaccess tweaks here

Thanks for the tip! :)


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

#92 2010-03-15 18:26:17

Piru
Member
From: Antwerp, Belgium
Registered: 2008-06-03
Posts: 17
Website

Re: Post your Clean URL .htaccess tweaks here

This seems to be working for one.com hosting (Linux) — I’ll test it, if I find errors or bugs I’ll post them.

inhoud .htaccess bestand: 
------------------------
#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
------------------------

(added bc.. for better display. -Els)

Last edited by els (2010-03-15 18:59:47)

Offline

#93 2010-04-10 12:48:19

gfxx
Member
Registered: 2008-09-04
Posts: 12

Re: Post your Clean URL .htaccess tweaks here

I had a 500 Error using the standard htaccess file with a provider called hosteurope.

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

The following line caused the problem: RewriteRule ^(.+) - [PT,L]

I copy pasted the htaccess contents suggested by textpattern from the browser. That resulted in the - sign (the minus) in the middle to be a little bit different, some kind of other character. When I deleted that character and replaced it with the - on my keyboard it worked perfectly fine.

Hope somebody skips wasting 10 hours.

Last edited by gfxx (2010-04-10 12:53:47)

Offline

#94 2010-06-23 00:33:35

Ruhh
Member
From: dakota dunes
Registered: 2008-01-20
Posts: 305

Re: Post your Clean URL .htaccess tweaks here

Hi,
Does anybody here have byethost free hosting as their host? I am having difficulty trying to get clean URLs here.


<txp:Ruhh />

Offline

#95 2010-06-23 21:27:48

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Post your Clean URL .htaccess tweaks here

Sarah, your question will be noticed quicker if you open a new topic in the Troubleshooting forum. This thread is for solutions, not for questions ;)

Offline

#96 2010-06-24 08:42:35

Ruhh
Member
From: dakota dunes
Registered: 2008-01-20
Posts: 305

Re: Post your Clean URL .htaccess tweaks here

Oh! I’m so sorry. It has been 3 years I have not visited this forum. Long time, no TXP love! But I’m back!


<txp:Ruhh />

Offline

Board footer

Powered by FluxBB