htaccess identical folder and file name
问题 How can I set up an htaccess that can distinguish a file from a folder with the same name? I have under my website index.php team.php team/Justin.php team/martin.php... and a htaccess with a URL Rewrite to make nice url and remove the .php RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^\.]+)$ $1.php [NC,L] Unfortunately when I go to the url mywebsite.com/team it goes straight to the team folder... I would like mywebsite.com/team goes to --> team.php page mywebsite.com