title: how to properly create url rewrite in php and htaccess
body: <p>I know this question has been ask often. I leverage the links here but still cannot get it to work</p>
  
  <p>source: <a href="https://stackoverflow.com/questions/7063156/htaccess-rewrite-urls">link</a></p>
  
  <p><strong>what am trying to achieve:</strong></p>
  
  <p>I have Original URL:</p>
  
  <pre><code>Eg: http://localhost/followersid.php?id=101data
  </code></pre>
  
  <p>which am trying to rewrite as follows</p>
  
  <pre><code>Eg: http://localhost/followers
  </code></pre>
  
  <p><strong>.htaccess Code</strong></p>
  
  <pre><code>RewriteEngine On
  RewriteRule ^([a-zA-Z0-9_-]+)/\followers$ followersid.php?id=$1
  </code></pre>
  
  <p>My ISSUE: When I type <strong><a href="http://localhost/followers" rel="nofollow noreferrer">http://localhost/followers</a></strong> in the url, it says The requested URL was not found on this server whereas <strong>followersid.php</strong> is in the same directory with <strong>.htaccess</strong> files</p>