I search for a way to hid开发者_如何学Ce php extension to show website files as folders and I found it can be done using .htaccessm and i found this code :
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
But it does not working for me! Van anyone help please?
rewrite mode is enabled on server
The website uses nginx which does not support Apache .htaccess files.
See https://serverfault.com/questions/24243/nginx-support-for-htaccess-rewrite-rules-differences-from-apache
精彩评论