Tag: Redirection Wordpress

Redirection Plugin for WordPress

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:

https://leonelson.com/2009/02/title-of-this-page.html

to:

https://leonelson.com/2009/02/title-of-this-page/

Here are the settings that worked for me:

Source URL: ​/(\d*)?​/(\d*)?​/([A-Za-z0-9-]*).html

Target URL: /$1/$2/$3/