I'm kind of new to creating redirects and I need some help with this matter.
I'm trying to redirect a link that looks like http://marpic.pt/query_piscinas.php?modelo=Corredor%20Nata%E7%E3o
And I want to redirect to http://marpic.pt/
I tried with the following code
RewriteCond %{QUERY_STRING} modelo=Corredor%20Nata%E7%E3o
RewriteRule ^query_piscinas\.php$ /$ [L,R=301]
But it doesn't work. What am I doing wrong?