How to force a 404 page for invalid links?
-
I used Permalink Validator to solve some of the issues that I had with wrong URLs typed but the most annoying problem still remains.
When someone clicks on a link to my blog that ends with /?something like https://www.myblog.com/?download_free_movies it still directs them to a page on my blog and I would like them to see a 404 not found page instead.
My wordpress website was recently hacked and I have hundreds of those links listed on google and other search engines and websites. I am in the process of trying to remove them from google cache but returning a 404 instead of directing it to a page on my website would be very helpful as well.
Thanks in advance for your suggestions.
- The topic ‘How to force a 404 page for invalid links?’ is closed to new replies.