Very good, I was attacked on my website and redirects to malicious sites were generated. I already cleaned everything but I keep showing up in the Google SERP and to do so I have to generate 404 errors for the affected routes. So says Google that it is the first step to disappear from the search. Now the links that appear from the Google SERP already direct to my website but I want them to generate a 404.
All links are of the type:
http://misitioweb.com/?bezstywue=un-monton-de-parametros1
http://misitioweb.com/?bezstywue=un-monton-de-parametros2
http://misitioweb.com/?bezstywue=un-monton-de-parametros3
I want to make everything that starts with
http://misitioweb.com/?bezstywue
generate 404 error I have tried things like
RedirectMatch 404 ^\?bezstywue(.*)$
But it's not working. Can you help me? Thanks greetings!