How To Disable WordPress 2.3 Canonical Redirection

I went to load my test server after updating the database with a current Nusuni Dot Com database backup, and to my surprise it kept redirecting to www.nusuni.com. This is because Wordpress 2.3 introduced canonical redirection, which is a good thing, but they did it in probably the stupidest way possible.

Basically they force you to use it without giving you any way to disable it other than editing code. If you are experiencing problems with it, go into the /wp-includes/canonical.php file, then insert “return;” at the top of the redirection_canonical function. Fixed my problem perfectly.

Please subscribe, or else I will cry. Do you really want to make a programmer cry?

Leave a Reply

Note: By submitting your comment you agree to this blog's comment policy.

If you want a little icon next to your name - sign up for one at Gravatar.