Remove .php extension with PHP
问题 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: http://mydomain.com/page.php/foo/123/bar/456 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); } } Any ideas? /Tobias 回答1: If you're serving via Apache, you'll want