Apache mod_rewrite replace characters in REQUEST_URI
- by frio80
I'm trying to write some .htaccess rules that replace certain characters in the REQUEST_URI parameter. Specifically, I want to replace the following:
"<" = <
"" = >
"'" = '
'"' = "
")" = )
"(" = (
Example URL could be http://www.example.com/?<script>alert(1)</script>&q=")("<script')
I've tried a whole bunch of methods with no success. Can someone point me in the right direction? Thanks.