htaccess - Removing last segment after unique ID number in url
问题 In case there is something after a string that looks like this "/UniqueID (numbers only)/", e.g.: "/455/", in my url, I want to delete it. Here is what I have in my htaccess file right now: RewriteCond %{REQUEST_URI} m.* RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^m(.*)$ articles.php?$1 [T=application/x-httpd-php,L] (I guess it adds a hidden extention "articles.php". So, if my url looks like this: www.mondomaine.com/m/234/ - no change needed for the