I changed my posts permalinks from
/%postname%/. Now all my old URLs are not working and I want to redirect them to new structure.
How can I do that? I use nginx
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.Sign up to join this community
Turns out the process is simple.
First, reset the permalinks to the old permalinks.
Then, using the RankMath plugin, from general settings --> Auto post redirect, activate this option and make it on.
Then, change the permalinks structure to the one you desire, and the plugin will automatically do it for you!