• 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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello @balkisanton

    Thanks for using the Yoast SEO plugin. You’re correct that the free plugin wouldn’t create redirection automatically.

    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.

    Is it possible to share a URL that illustrates what you described above? You couls also provide a screenshot instead. You can use any image-sharing service like https://pasteboard.co/, https://snag.gy/, https://imgur.com/, https://snipboard.io/, or even upload the screenshot to your own website. Once you upload it to an image-sharing service, please share the link to the image here. screenshot that

    Thread Starter Balkis Anton Nurohman

    (@balkisanton)

    Ok, but now I’m reverting the permalink migration again because it’s bad for users and it’s also bad for SEO, but I can provide a report on the screenshots :

    Links (if the image not appear):

    Can you explain why this is happening? Thanks

    Thread Starter Balkis Anton Nurohman

    (@balkisanton)

    Update :

    I tried migrating to another SEO plugin and the problem still exists. I also tried deactivating the plugin and found the root of the problem. And it was the redirection that didn’t work.

    I don’t know what caused it. But I believe it’s because the redirection plugin doesn’t get access rights to the server, just like the previous problem where I had to put image redirects in nginx configuration because at the plugin level they didn’t work.

    Sorry, I thought this was a problem with the Yoast plugin.

    Plugin Support Maybellyne

    (@maybellyne)

    Thanks for sharing your troubleshooting steps and findings with us. We’re glad you were able to identify the culprit.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Yoast Free Version Created Automatic Unwanted Redirection’ is closed to new replies.