Wish to change category name and slug without causing 404s

#676940
  • Resolved Shrawan
    Rank Math free

    Hello Rankmath team,

    I’m looking to change the category name and slug for select categories, but wish to do it without 404s. How do I go about it.

    For example I want to rename URL 1 to URL 2 without losing traffic.

    This category also has sub-categories, so how would do I make this work correctly?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thank you for reaching out to us. To change the category name and slug without causing 404s, you can follow these steps:

    1. Go to Posts → Categories and look for the category you want to edit.
    2. Hover over it and click the Edit button.
    3. Here you can edit the slug in the Slug field and update it.

    Edit tags in WordPress

    If you have sub-categories, you should also update their slugs accordingly to maintain the hierarchy.

    Additionally, if you are using Rank Math, you can enable the Remove parent slugs option in Rank Math SEO settings to remove the parent category slugs from the URLs. This will help you maintain the URL structure and avoid 404s.

    remove parent slugs

    After making these changes, it’s important to set up redirects for the old URLs to the new ones. You can use a redirection plugin like Rank Math or any other trusted redirection plugin to create 301 redirects from the old URLs to the new ones. This will ensure that your traffic is redirected to the new URLs without causing 404 errors.

    If you’re changing settings on an existing website that’s already receiving traffic, we recommend proceeding with caution and looking into putting redirects in place. If you’ve made any changes, don’t forget to hit the Save Changes button at the bottom of the screen to reflect the changes.

    I hope this helps! If you have any further questions or need assistance with anything else, feel free to ask.

    Sources:
    What Is a Slug in WordPress? » Rank Math
    How to Optimize a Category Page » Rank Math
    How to Remove the Category Base From WordPress » Rank Math
    WordPress Permalink Structure & Changing Individual URLs » Rank Math

    Is ‘Remove parent slug’ available in Rankmath free or Rankmath Premium?

    Hello,

    Our plugin only removes the /category/ base from your category URLs which is added from WordPress by default. We don’t remove your parent category slug from your URLs.

    However, in order to achieve this, you can use an external plugin like Permalink Manager Lite which will allow you to remove the parent category slug from your ULRs.

    Hope that helps and please don’t hesitate to let us know if you have any other questions.

    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

The ticket ‘Wish to change category name and slug without causing 404s’ is closed to new replies.