Mod_rewrite .htm to fake subdirectory
问题 I have a website with a CMS that uses mod_rewrite to make URLs look cleaner. Previously, the clean URLs had the extension .htm, but I want to transition this to them appearing as fake subdirectories, IE: http://www.example.com/pagename/ I have two rewrite rules in place to rewrite both the old scheme and the potential new one: RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+).htm$ index.php?page=$1 [QSA] RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)/$ index.php?page=$1 [QSA] My