Forcing the rewriting of URLs by hiding .php AND .htm(l) extensions and redirecting to extensionless URLs
问题 here is my configuration: http://domain.com (obviously fictitious name...) hosted on a server running Apache with mod_rewrite enabled folder named "foo": (located at http://domain.com/foo/ and in which I want to put my .htaccess file) containing only 3 types of files .php, .htm, .html .php files (for the sake of the example I will refer to one of them: phpfile.php) .htm files (for the sake of the example I will refer to one of them: htmfile.htm) .html files (for the sake of the example I will