Yoast Free Version Created Automatic Unwanted Redirection
-
I want to migrate permalink from domain.com/postname/ to domain.com/category/postname/ using redirection plugin site migration. I’ve done in my other site with other SEO plugin (not using Yoast).
But in this site, I’m using Yoast. And some strange incident happened. Yoast creating an automatic unwanted redirection to image thumbnails.As a result, what should have redirected from domain.com/postname/ to domain.com/category/postname/ instead went to domain.com/wp-content/uploads/year/month/postname.jpg which is a thumbnail image I had that happened to have a similar file name to the slug.
I thought yoast free wouldn’t create redirection automatically, because it’s a premium feature. But when I check what is causing redirect (using https://redirect.li/ and https://www.redirect-checker.org), I found that redirection done by Yoast.See the screenshots here :
I’ve add a php function to disable automatic taxonomies redirection :
add_filter('Yoast\WP\SEO\post_redirect_slug_change', '__return_true' );
add_filter('Yoast\WP\SEO\term_redirect_slug_change', '__return_true' );
But because this is on premium documentation and that is not a permalink redirection, it doesn’t affect anything.
Or did I miss something?
But please follow up this case, I really need it. At least, I can stop Yoast from creating automatic matching redirect. Thanks
- The topic ‘Yoast Free Version Created Automatic Unwanted Redirection’ is closed to new replies.