Wordpress 301 redirect, after permalink change from %day% to %id%
<p>On a Wordpress blog, with <em>posts</em> permalink setup like this: <code>/%year%/%month%/%day%/%post_name%/</code></p>

<p>How to massively change the permalinks to this: <code>/%post_name%-%post_id%/</code>.
I have about 10,000 articles.</p>

<ol>
<li>Change the permalink from wordpress settings - done.</li>
<li>Create a redirection for all link <code>/1970/01/01/this_is_a_post/</code></li>
</ol>

<p>How to do the step 2?</p>

<p>People will arrive on <code>/1970/01/01/this_is_a_post</code> but they will find a 404 as the post is now under <code>/this_is_a_post-00022</code>.</p>