I want to change the permalinks from /%year%/%monthnum%/%postname%.html to /%postname%/ on WordPress.
I've got hundreds of posts so I want to know please if there is any chance to make a redirection from .htacess for old my posts with /%year%/%monthnum%/%postname%.html to /%postname%/.
I did the redirection using the Yoast permalink helper tool. Worked well! https://yoast.com/research/permalink-helper.php I added the following to my htaccess file.
RedirectMatch 301 ^/([0-9]{4})/([0-9]{2})/([^/]+).html$ https://yourdomain.com/$3