How to use the Yoast SEO wpseo_canonical filter to set a canonical URL for /, /au/ & /uk/ sites in a MU environment
How would I use wpseo_canonical filter to set a canonical URL for the posts in www.example.com/uk/? E.g. the blog post www.example.com/uk/blog/post-1/ should have a canonical URL of www.example.com/blog/post-1/ I believe. I don’t know if that should be the canonical URL, but if you are asking how can that be done, then this would do it, … Read more