Created
July 14, 2015 23:45
-
-
Save cmg-jess/3a5305c750da948f1994 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('redirect_canonical', 'no_redirect_on_404'); | |
function no_redirect_on_404($redirect_url) | |
{ | |
if (is_404()) { | |
return false; | |
} | |
return $redirect_url; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment