I would like to have pretty URLs for my tagging system along with all the special characters: +,&,#,%, and =. Is there a way to do this with mod_rewrite without having to double encode the links?'
I notice that delicious.com and stackoverflow seem to be able to handle singly encoded special characters. What's the magic forumla?
Here's an what I want to happen with an example:
http://www.foo.com/tag/c%2b%2b
Would trigger the following RewriteRule:
RewriteRule ^tag/(.*) script.php?tag=$1
and the value of tag woule be 'c++'
The normal operation of apache/mod_rewrite doesn't work like this, as it seems to turn the plus signs into spaces. If I double encode the plus sign to '%252B' then I get the desired result - however it makes for messy URLS and seems pretty hacky to me.