Recently my Joomla site that uses K2 started getting a lot of "Soft404" errors. The URLs look like
/?option=com_k2&view=itemlist&task=user&id=xxx
where xxx is a random number. The referrer in these cases is my own website so I assume someone is spamming me via an attempted search and trying to find a way in. What I want to do is return a 404 in these cases instead of a 200. It seems the page is dynamically generated and returns a 200 but with an error inside it like this
Warning JUser: :_load: Unable to load user with ID: 35414
I don't really need to fix this page as much as I want the header to include the 404. Can anyone point me in the right direction?