redirect_canonical() – in WP core since 2.3

Tries to do 301-redirects to canonical url if hostname differ from the one set in WP_HOME. Did not know that this function existed, have this been broken for a long while ? Why have I been doing canonical hostname redirects in server conf? Bookmarked https://github.com/WordPress/wordpress-develop/blob/6.1/src/wp-includes/canonical.php#L42-L809.

redirect_canonical() – in WP core since 2.3 Read More ยป