Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.
I've got the following rewrite rules in my htaccess file:
RewriteRule ^(.*\.(jpg|gif|png|css|js))$ $1 [L]
RewriteRule ^(.*)$ index.php?path=$1 [QSA]
Normally, this wouldn't give me any problems, since my urls contain just letters, numbers and underscores (and some slashes, of course). But here it comes: my tag cloud has urls like /tag/%C3%B8%C3%AF%C3%A9+%C3%B1%2B
Mod rewrite decodes these characters, so by the time the variable reaches the PHP code, %2B has become the same as %20, etc. If googled a bit about it, read something about a [NE] flag, but I can't get it to work (once again ;-). I found out that encoding the urls twice is a solution: urlencode(urlencode($variable)), but that would produce even dirtier urls.
Maybe someone here can help me out?
$url = str_replace('ä', 'a', $url);
Perhaps something like "c_plusplus" or "H_and_M"? Hopefully someone else will step up soon and provide a better solution, but that's all I've got.$replacements = array("_","%plus%","%add%","%percent%");
$real_text = array(" ","&","+","%");
$url = str_replace($real_text,$replacements,$place_string_here); // encode to url
$regular_text = str_replace($replacements,$real_text,$place_string_here); // decode back to text1 to 6 of 6