Disable WordPress’ Built-in Canonical URL

Most of the common SEO plugins for WP already handle canonical URLs quite nicely, so the best thing to do for now is to disable the built-in URL generation. Find your functions.php:
cd /site-home-catalog/
find ./ -name functions.php
You can do this quite simply by adding the following to your theme’s functions.php:
# Remove WordPress' canonical links
remove_action('wp_head', 'rel_canonical');

Leave a Reply