title: Redirect 301 from /post.html to /post/ after permalink change in wordpress
body: <p>I changed permalink from /post.html to /post/</p>
  
  <p>I used this code in .htaccess:</p>
  
  <pre><code>RedirectMatch 301 /(.*)\.html http://example.com/$1
  </code></pre>
  
  <p>The posts redirect work well, but if I go to homepage, I see <a href="http://example.com/index" rel="nofollow">http://example.com/index</a> with 404 error</p>
  
  <p>How can I fix?</p>