-
I’m using RankMath on a managed WordPress server on HostJane AWS – https://www.hostjane.com to manage our SEO with a custom post type ‘events’ and a dynamic taxonomy ‘event-category.’
After updating to a new permalink structure (/events/%event-category%/%postname%/), I need to redirect old URLs (/event/%postname%/) to the new structure using RankMath’s regex redirect feature.
However, my regex pattern /^event\/(.+)/ to /events/$1/%postname%/ is incorrectly mapping the event category, causing 404 errors for some posts and breaking dynamic archive pages.
How can I craft a regex pattern in RankMath that correctly captures the post name and dynamically assigns the corresponding event category in the redirect while preserving archive page functionality?
Also, HostJane is using AWS EC2 servers to host Rankmath (https://cloud.hostjane.com/wordpress) and I am concerned a bit that there is some kind of security group conflict happening with my WordPress set up but will persist and see how it goes if I can fix this regex problem. Would AWS interfere with regex permalinks?
The ticket ‘Help managing permalinks in Rankmath server on HostJane’ is closed to new replies.