Hello,
Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for the delay.
You can try this regex
redirect to remove the year, month, and the .html to your old links and redirect to the post name.
Source URL: /([0-9]{4})/([0-9]{2})/([^/.]+).html$
Destination URL: /$3
It should like this:
I hope that helps.
Thank you, and looking forward to helping you.
And how to redirect for amp ?
Hello,
Thank you for the follow-up.
I’m assuming that your AMP pages have the /amp
at the end. To redirect those, you can set up a regex
redirect using this structure:
Source URL: (.*)/amp
Destination URL: /$1
I hope that helps. Thank you, and please don’t hesitate to contact us anytime if you need further assistance with anything else.
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.