.htaccess rewrite /foo/bar/ to /foo/bar.php
问题 I'm looking to set rules in my .htaccess file so that all files with a .php extension can be accessed by replacing the extension with just a slash ( /foo/bar/ would silently load /foo/bar.php ). Previously, I found this, which is kind of what I'm looking for, except it only changes /foo/bar.php to /foo/bar (notice there is no end slash). I'm almost a completely newbie when it comes to htaccess, and about 30 minutes of tweaking with the code from the previous link produced nothing by a ton of