redirect generator

  • Hello, on my site here (using schema and RankMath)

    I have this permalink structure


    but I think that for SEO purposes it’s better to have a structure like this one


    Problem is, if I change the permalink structure, how to create an htaccess rule (or RankMath) to automatically redirect all the traffic to the new URL.

    I’ve seen Yoast’s Redirects Generator but it does convert others permalink to the /%postname%/ one.

    Can you help me sort out an htaccess rule to convert from /%postname%/ to /%category%/%postname%/ ?

    Thank you very much!

Viewing 1 replies (of 1 total)
  • Hello,

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

    Here is a PHP solution that works to redirect all the links after the permalink change.

    Looking forward to helping you. Thank you.


Viewing 1 replies (of 1 total)

You must be logged in to reply to this ticket.