Do you know a method to redirect all links in one go from my 2020 and 2019 posts? My permalinks are like this: https://website.com/%postname%/

I have a quite a lot of posts and I don't feel like doing them one by one. So, I was wondering if you knew of a plugin that could do the job? Or is it impossible to do with my type of permalinks?