How to remove canonical url in wordpress? add_filter( ‘wpseo_canonical’, ‘__return_false’ ); not Working for me
In WordPress, there’s a function named redirect_canonical() which basically: Redirects incoming links to the proper URL based on the site URL. And by default, the function is hooked to template_redirect: add_action( ‘template_redirect’, ‘redirect_canonical’ ); So you can cancel/disable the default canonical redirects in WordPress like so: remove_action( ‘template_redirect’, ‘redirect_canonical’ ); However, if you’re just trying … Read more