title: Remove .php extension with PHP
body: <p>I could use some help here. I'm using this to fix my URL but I can't figure out how to remove the .php extension. The URL looks like this now: <a href="http://mydomain.com/page.php/foo/123/bar/456" rel="nofollow noreferrer">http://mydomain.com/page.php/foo/123/bar/456</a></p>
  
  <pre><code>function decode_URL_parameters() {
     $path = @$_SERVER['PATH_INFO'];
     $url_array=explode('/',$path);
  
     array_shift($url_array);
  
     while ($url_array) {
        $_GET[$url_array[0]] = $url_array[1];
        array_shift($url_array);
        array_shift($url_array);
     }
  }
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p>/Tobias</p>