title: How do I rewrite an id to a name via htaccess
body: <p>I am trying to rewrite the title ID through htaccess but it does not work. I used several different codes in htaccess but it does not work.
  When I went to the url by name it did not show me any post, but with ID it works very well.</p>
  <p>I am using this code in htaccess:</p>
  <pre><code>RewriteRule ^([0-9a-z]+)/?$ news-details.php?nid=$1 [NC,L,QSA]
  </code></pre>
  <p>ID for posts/categories:</p>
  <pre><code>127.0.0.1/new/news-details.php?nid=89
  127.0.0.1/new/category.php?catid=9
  </code></pre>