title: using htaccess to remove .php from URL
body: <p>MY URL: <code>http://localhost/test.php</code></p>
  
  <p>I am using:</p>
  
  <p>.htaccess:</p>
  
  <pre><code>RewriteEngine On 
  RewriteBase /
  RewriteCond %{REQUEST_FILENAME} !-f 
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
  </code></pre>
  
  <p>PHP:</p>
  
  <pre><code>$url = $_GET['url'];
  echo var_dump($url);
  </code></pre>
  
  <p>But all I get for $url is:NULL NULL NULL NULL NULL NULL</p>