Earlier this week I installed the Redirection Plugin for WordPress to handle some broken permalinks caused as a result of changing the URL structure for my domain.
There’s some great information about customizing the plugin at Redirection Plugin and Regexes. For my purposes, I was trying to redirect posts like:
Here are the settings that worked for me:
Source URL: â€‹/(\d*)?â€‹/(\d*)?â€‹/([A-Za-z0-9-]*).html
Target URL: /$1/$2/$3/