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!
In the end I solved it with:
It may be that you have the sidebar wrong, you have this:
And maybe you should put this:
I use this following code, maybe it can help you.
Also try using the parameters the other way around, example:
I hope to help you with this, anything you tell me.