Simplify URLs slightly by removing file extensions from the URL path. Should not be misinterpreted as a way to ‘cloak the technology in use’, but rather just to tidy up URLs a bit.
Refer also to: Virtual Host Config or .htaccess?
To allow extension-less filenames in URLs, add the following rule to .htaccess:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.+)$ $1.php [L,QSA]
This would cause requests to /articles/popular to be rewritten as /articles/popular.php. Specifically, the above rule says ‘if the URL requested is to a file name that doesn’t exist, or to a directory that does not exist, or to a file that DOES exist if we append .php to it, then rewrite the URL path to include the .php at the end and append the querystring if it exists’.
Replace .php with the file extension appropriate for your given language.