Apache   Escaping characters on Apache rewriting rules



If you use Apache, probably you have used the mod_rewrite and the RewriteRule sentences.

One simple rewriting rule:

RewriteRule ^/cars    http://myweb.com?productid=244 [L,R]

So, when I try to access to subfolder "cars" of the configured virtual host, the browser will be redirected to http://myweb.com?productid=244

But, what if the product id contains, for example, a character like '%'?Let's try:

RewriteRule ^/cars    http://myweb.com?productid=2%44 
Read more