title: mod_rewrite rewriting a url
body: <p>Hay, can someone lend a helping hand to get a rewrite rule to work?</p>
  
  <p>I'm developing a CMS and the URL currently look like this</p>
  
  <pre><code>page.php?id=2/About-us
  </code></pre>
  
  <p>I want to remove the </p>
  
  <pre><code>page.php?id=2/
  </code></pre>
  
  <p>part of the URL and just show</p>
  
  <pre><code>About-us
  </code></pre>
  
  <p>Any ideas how to get this working?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I have since changed my URLS to </p>
  
  <pre><code>page/PAGE_NAME
  </code></pre>
  
  <p>and used the rule</p>
  
  <pre><code>RewriteRule ^page/([^/\.]+)/?$ index.php?page=$1 [L]
  </code></pre>
  
  <p>However, apache just says that index.php was not found on the server.</p>