I want mod_rewrite rules for query string ?:hizzah=blah to redirect to brouahaha.html
I tried this:
RewriteCond %{QUERY_STRING} :hizzah=blah
RewriteRule .* brouahaha.html
Note the colon in front of hizzah.
The problem: this does not work if the colon is encoded. i.e. example.com?:hizzah=blah works but example.com?%3Ahizzah=blah does not.
I know having the colon is probably a bad idea because it’s a reserved character, but its non-negotiable for now. It has to be this way.
What’s the cleanest mod_rewrite way to allow the colon to be either plain or encoded?
Try