title: htaccess URL not found
body: <p>I have an <strong>.htaccess</strong> file and code in it:</p>
  
  <pre><code>#command_players
  RewriteRule ^command_players/([0-9]+)?$ command_players.php?id=$1 [NC,L]
  </code></pre>
  
  <p>My login page should redirect to command_players.php page when the user input is correct:</p>
  
  <pre class="lang-php prettyprint-override"><code>if (password_verify($_POST['pass'], $results['pass'])) {
      $_SESSION['command']= 'ok';
      $_SESSION['id'] = $results['id'];
      redirect("command_players/$results[id]/");
  }
  </code></pre>
  
  <p>But I get an error like:</p>
  
  <blockquote>
    <p>The requested URL /site/command_players/18/ was not found on this server, </p>
  </blockquote>
  
  <p>when <code>/site/command_players.php</code> works.</p>
  
  <p>I am not good in htaccess, what I do wrong?</p>