Include ":" character in parameter using Apache's mod_rewrite

Posted by travis on Stack Overflow See other posts from Stack Overflow or by travis
Published on 2009-09-16T16:43:28Z Indexed on 2010/04/13 10:02 UTC
Read the original article Hit count: 274

Filed under:
|
|
|

I use something like that to pass to the parameter 'text' what follows after the domain

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?text=$1 [L,QSA]

So if I have www.example.com/tralala I get $text='tralala'

But I want it to be possible to have in the parameter the character ":" multiple times:

www.example.com/me:you:him

Can you give me a hand?

If I test

www.example.com/me:you:him 
I get the error:

Forbidden

You don't have permission to access /you:me:him on this server.

© Stack Overflow or respective owner

Related posts about apache

Related posts about mod-rewrite