Redirect permalink

#452424
  • 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.

    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/

    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.

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

You must be logged in to reply to this ticket.