-
I just installed RankMath on a new site. The site was already using a plugin called Redirection to manage my redirects. When I installed RankMath, the Setup Wizard told me that it would import my redirects from Redirection, as well as deactivate Redirection, because the plugin was incompatible with RankMath.
However, while Redirection was deactivated, RankMath did not import ANY of my preexisting redirects. The RankMath redirections page is completely blank. So I have to set up all my redirects again from scratch.
My main redirect was a regex that converted old WordPress URLs that used a date structure in the URL to just the post type in the URL. I recreated the same source and target URL regex code in a new redirect in RankMath, but it is not working. This exact same code worked just fine as a redirect in the Redirection plugin. Can you tell me what needs to be changed for RankMath to use it correctly?
Source URL: ^/\d{4}/\d{2}/\d{2}/(.*)
Target URL: https://mydomain.com/$1
(in the Redirection plugin, my target URL was just /$1 but RM forces the domain into the field)Thank you.
The ticket ‘Redirection regex not working in Rank Math’ is closed to new replies.