Permalink Redirect

#296427
  • Resolved Whale
    Rank Math free

    Hi team, I made a post on Facebook about redirecting my Permalink structure. I changed my site’s URL structure, is there a way to redirect the old permalink to the new ones to keep interlinks from returning 404.

    I mean redirecting /%year%/%monthnum%/%postname%.html

    to

    /%postname%/

    I learnt this can be achieved using regex redirection which RankMath currently doesn’t support. And I should contact support for help on the redirection rule.

    https://www.facebook.com/groups/rankmathseopluginwordpress/permalink/966861984186128/

    How do I go about it please. Thanks

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

    Thank you for contacting Rank Math and bringing your concern to our attention.

    Please try this regex redirect to redirect the year, month, and the .html to the post name structure:

    Source URL: /([0-9]{4})/([0-9]{2})/([^/.]+).html$
    Destination URL: /$3

    It should like this:

    Regex

    I hope that helps.

    Thank you.

    Whale
    Rank Math free

    It worked!!!.. Thank you, thank you, thank you… Does the redirection rule work for all types of Permalinks structure or jes my case?

    Hello,

    Glad that helped.

    The redirection will only work for your previous post’s permalink structure:
    /%year%/%monthnum%/%postname%.html

    If there are some other types of permalinks you wanted to redirect, you can share the URL so we can check and advise accordingly.

    Looking forward to helping you.

    Thank you.

    Whale
    Rank Math free

    Ok thanks a lot

    Hello,

    You’re welcome.

    We are super happy that we have addressed your concern. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind us asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

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

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