How to prevent automatic redirection of 404 errors and incorrect URLs?

Posted by Prem Tiwari | Updated on

You can disable permalink guessing for 404s without disabling redirection of canonical URLs by adding the following line somewhere in your code in functions.php file:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers