Escaping characters in a mod rewrite rule?
Posted by: ncasares
Posted on: 2007-05-14 16:07:00
I've got a fairly basic rule setup in my .htaccess file, but for some reason, I cannot get this to work. What I have:
RewriteRule ^index.php?utm_source=crm&utm_medium=email&utm_conent=generic01$ http://www.webassetvault.com [R=301,L]
For some reason this rule isn't working. If I remove the query string from the original URL I can get it to work (even with the question mark). When I re-introduce the query string the rule stops working and no redirection happens.
Anyone have any clue what's going on? Am I correct in thinking that the "." and "?" must be escaped?
Thanks in advance for your replies!