We recently moved from WordPress to Wix. After the migration was complete we noticed in Google Search console that the WordPress site had seemingly been compromised because there are many URLs of the form:
https://<domain_name>/?s=<gibberish>
In an effort to remove these from the search console I would like to apply some sort of scripting that would recognize the “s” query parameter and redirect to our 404 page. I have considered doing this at the page level and at the router level but am looking for guidance from the Corvid community on the best approach.