title: Redirect www.domain.com/post/ to www.domain.com/post.html wordpress htaccess
body: <p>I want to remove year and month and redirect my old post from google search from</p>
  <p>here is my htaccess code</p>
  <h1>BEGIN WordPress</h1>
  <pre><code> &lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /
  RewriteCond %{QUERY_STRING} ^m=1$
  RewriteRule ^(.*)$ /$1? [R=301,L]
  Options -MultiViews
  RedirectMatch 301 ^/[0-9]{4}/[0-9]{2}/([a-z0-9\-/]+) https://newkannada.com/$1
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^([^/.]+)/?$ $1.html [L,R=301]
  RewriteRule ^index\.php$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.php [L]
  &lt;/IfModule&gt;
  # END WordPress
  </code></pre>
  <p>But it appending .html to categories also</p>
  <p>any help thanks in advance</p>