title: Apache rewrite rule to make pretty URLs
body: <p>I am trying to keep my URLs pretty.</p>
  
  <p>Say we have the URL: </p>
  
  <pre><code>severhost.com/team/4325
  </code></pre>
  
  <p>In the team.php file I want the 4325 to be filled in <code>$_GET["id"]</code>.</p>
  
  <p>I have this rewrite rule: </p>
  
  <pre><code>RewriteRule ^/?team/([0-9]+)$ team.php?id=$1 [R]
  </code></pre>
  
  <p>but this actually changes the URL in the browser to be:</p>
  
  <pre><code>severhost.com/team.php?id=4325
  </code></pre>
  
  <p>I want the URL in the browser to remain <code>severhost.com/team/4325</code>.</p>