Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-07-25 07:24:26
- SweMike
- New Member
- Registered: 2006-07-22
- Posts: 4
Mod_Rewrite & Clean URL:s
I have just installed textpattern at http://modul101.com
Been working with .htaccess for two days and need some help.
If I choose one of the three categories (dropdown menu) that I have
the URL will look like this: http://modul101.com/?c=Musik
It can also look like this http://modul101.com/kategori/Musik/ by clicking
the category name at the article.
My wish is that it should look like this: http://modul101.com/Musik
My .htaccess:
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/
<IfModule mod_rewrite.c>
RewriteBase /
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?modul101.com(/)?.*$ [NC]
RewriteRule .*\.(gif|jpe?g|png|bmp)$ [F,NC]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) – [PT,L]
RewriteRule ^(.*) index.php
</IfModule>
#php_value register_globals 0
Can some please help me?
Last edited by SweMike (2006-07-25 07:31:42)
Offline
#2 2006-07-25 08:07:49
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Mod_Rewrite & Clean URL:s
It’ll take more than an .htaccess modification, you’d have to add new PHP.
Offline
#3 2006-07-25 08:25:40
- SweMike
- New Member
- Registered: 2006-07-22
- Posts: 4
Re: Mod_Rewrite & Clean URL:s
Mary wrote:
It’ll take more than an .htaccess modification, you’d have to add new PHP.
What should I change?
Offline
#4 2006-07-25 08:51:06
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Mod_Rewrite & Clean URL:s
You’ll have to alter Textpattern’s URL processing logic to add a new URL scheme, find solutions to the various problems it causes, test thoroughly for regressions, etc.
If you’re a PHP developer, you’ll be able to find where to start and know what to look for. If not, you’ll need to find yourself a PHP developer.
Alex
Offline
#5 2006-07-25 11:24:00
- SweMike
- New Member
- Registered: 2006-07-22
- Posts: 4
Re: Mod_Rewrite & Clean URL:s
zem wrote:
You’ll have to alter Textpattern’s URL processing logic to add a new URL scheme, find solutions to the various problems it causes, test thoroughly for regressions, etc.
If you’re a PHP developer, you’ll be able to find where to start and know what to look for. If not, you’ll need to find yourself a PHP developer.
Just tell me where too look, and I will try by myself.
Never worked with PHP before, just ASP.
Offline
#6 2006-07-25 23:09:03
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Mod_Rewrite & Clean URL:s
In publish.php.
Alex
Offline
#7 2006-07-26 13:00:39
- SweMike
- New Member
- Registered: 2006-07-22
- Posts: 4
Re: Mod_Rewrite & Clean URL:s
Ok, thnx!
Offline
Pages: 1