• Resolved TJ

    (@tysonjm)


    I just switched from All-in-One SEO to Yoast SEO on my site after 12 years. Suddenly, many of my URLs that used to just include the sub-category in the URL now includes both a parent and sub-category. This is affecting rankings.

    For example, I used to have mysite.com/parrots/parrot-types.html but now I have mysite.com/birds/parrots/parrot-types.html

    I do have “parrots” set as a child to the “birds” parent category, but my URLs never included that top-level parent category, only the sub-level one.

    I am using Yoast SEO v.14.2 and WordPress 5.4.1

    My WordPress permalink is the same as it’s always been for 12 years, which is a Custom Structure: /%category%/%postname%.html

    I’ve tried to change around the WP permalink settings or toggling off/on the Yoast SEO setting for “Remove the categories prefix” but I end up getting errors on my pages saying “too many redirects”.

    Hopefully there is an easy fix or I just have to go back to All-in-One SEO.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support devnihil

    (@devnihil)

    Can you please try the following?:

      1. Install & activate the Yoast Test Helper plugin
      2. Go to Tools -> Yoast Test
      3. Hit the “Reset indexables & migrations” button
      4. Click the “Click here to speed up your site now” button.

    Can you please let us know if this solves the issue on your site?

    Thread Starter TJ

    (@tysonjm)

    Thanks for providing a possible solution so quickly! I have to say I was able to solve it by removing all parent-child relationships within my WordPress categories. That made it so there were no nested categories, thus no “two-levels” that could be represented in URLs. I don’t think this will matter, right? I’m willing to try the above troubleshooting steps if you think it will still be beneficial. Thanks!

    Hi @tysonjm,

    Thank you for your reply and workaround. Happy to hear you got it sorted. There should be no need to do the re-indexation at this time as previously suggested.

    We are going ahead and marking this issue as resolved. If you require any further assistance, feel free to reopen. Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Two levels of category names showing in URLs’ is closed to new replies.