title: Redirect 301 wp url based on year/month/day to post-name.html
body: <p>I recently changed the permalink structure from</p>
  
  <p><a href="https://www.domainName.ro/2018/04/10/post-name.html" rel="nofollow noreferrer">https://www.domainName.ro/2018/04/10/post-name.html</a> </p>
  
  <p>to </p>
  
  <p><a href="https://www.domainName.ro/post-name.html" rel="nofollow noreferrer">https://www.domainName.ro/post-name.html</a>, </p>
  
  <p>using:</p>
  
  <p><code>"RedirectMatch rule 301 ^/([0-9]{4})/([0-9]{2})/([0-9]{2})/([^/]+).html$ https://www.domainName.ro/$4.html"</code> and works.</p>
  
  <p>Now I want to redirect, within the same site (old URL), the URLs from</p>
  
  <p><a href="https://www.domainName.ro/2018/04/10/post-name/" rel="nofollow noreferrer">https://www.domainName.ro/2018/04/10/post-name/</a> </p>
  
  <p>to </p>
  
  <p><a href="https://www.domainName.ro/post-name.html" rel="nofollow noreferrer">https://www.domainName.ro/post-name.html</a></p>
  
  <p>I tried different rules and did not work.
  The two rules must work at the same time on the site</p>
  
  <p>Can you help me?
  Thank you very much!</p>