Regex redirection issues

I am looking to change the permalinks on my site https://ai-med.io/

basically I changed from the standard site-name/%postname%/ to site-name/%category%/%postname%/

This is the code I added to the .htacess file

RedirectMatch 301 ^/([^/]+)/$ https://ai-med.io/$1

I cleared Cloudflare cache but it did not clear the problem so I reversed the permalink change and deleted the htaccess code

This is an example of a post that the old link cannot be accessed…

old URL https://ai-med.io/artificial-intelligence-in-radiology/

new URL https://ai-med.io/top-100-articles/arti%ef%ac%81cial-intelligence-in-radiology/

Any ideas?

Cheers

This topic was automatically closed after 14 days. New replies are no longer allowed.