for some reason (I can’t find why and how to enable), on my website any time if I’m trying to access no existing pages/urls – it just redirects to the main page and gives the Status code 200 instead 404.
Please can you help and advice how I should configure WordPress and Template to return the correct HTTP status code (404) and display the 404 page (Oops! That page can’t be found)?
Server config – for example HTTAccess.- Checked and asked hosting provider to review. There is nothing unusual and all looks correct
Redirect plugins or scripts. – Never used or added any of these. Should not be a matter in this case
Cache Plugins – that may be affecting the 404 return. – Recently swap to WP Rocket, therefore I can presume that this plugin could cause this problem, but I’ve tried to switch it off, and it still redirects to main page within status code 200.
I understand that this is nothing to do with the theme, but please could you give me some advice how I should action?