I have a website with URLs like:
Until last December everything was fine, but since then, when the service provider upgraded cpanel, the server rewrites:
http://www.example.com/mything/ (with a trailing slash)
To allow extentionless URLs, my .htaccess file contains:
# Rewrite "string" everything to 'with-suffix'
RewriteRule ^([a-z0-9\-]+)$ /$1.php [L]
# Rewrite "string/string" everything to 'with-suffix'
RewriteRule ^([a-z0-9\-]+)/([a-z0-9\-]+)$ /$1/$2.php [L]
The service provider has said that naming a folder (eg: mything) with the same name as a file is bad practice as the cpanel will tend to look at the folder as this takes a higher priority. Is this correct? Everything was fine for a couple of years, but not any more.