Redirect permalink

#452424
  • Resolved Marnie Brown
    Rank Math free
    Content AI Expert

    Hi there,

    I am planning on changing my permalink structure. Currently it is aminutewithmarnie.com/category/postname I want to get rid of the category.

    What is the EASIEST way to accomplish getting all post URLs to redirect to the new permalinks? I’ve found so many different answers online, and I’m thoroughly confused at this point. Is there anything that will automatically redirect since I haven’t changed the permalink structure yet?

    I have Redirections activated in Rank Math, but I don’t think that’s the solution….

    My host said to use the Redirection plug-in, but I can’t use it with other SEO plug-ins, and I’m not about to give up Rank Math 🙂

    Help!

    Marnie

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

    Thank you for contacting Rank Math support, and sorry for any inconvenience that might have been caused due to that.

    Please ensure that the option “Strip Category Base” is enabled under Rank Math > General Settings > Links.

    Rank Math should automatically redirect the old category URLs to the new ones without the “category” slug.

    If that isn’t the case from your end, please try clearing your website cache and check again.

    Looking forward to helping you.

    Marnie Brown
    Rank Math free
    Content AI Expert

    That’s not what I meant. That’s for category archives.

    I currently have the category in my permalink structure.

    Let’s say I had this: https://aminutewithmarnie.com/2022/09/sample-post/
    What’s the easiest way to move to this?: https://aminutewithmarnie.com/sample-post/

    Marnie Brown
    Rank Math free
    Content AI Expert

    To be clear – I know how to change the permalink easily enough.

    I mean what is the easiest way to redirect to that new permalink without having to do it one-by-one?

    Thanks!

    Hello,

    In this case, if you’re changing your website’s general permalink structure, WordPress should have automatically redirected the URL of your old post to the new one without any extra effort from your side. If for some reason, WordPress doesn’t automatically redirect your old URLs to the new ones, please make use of this regex to redirect year and month permalink to %postname%:

    Source: /([0-9]{4})/([0-9]{2})/(.*)
    Type: Regex
    Destination: https://yourdomain.com/$3

    The old link of yours should now redirect to the new permalink structure.

    Let me know if it works on your end.

    We are looking forward to helping you with this one.

    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 4 replies - 1 through 4 (of 4 total)

The ticket ‘Redirect permalink’ is closed to new replies.