开发者

why does not .htaccess file work on the following website sak.ps?

开发者 https://www.devze.com 2023-04-02 13:48 出处:网络
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 :

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

0

精彩评论

暂无评论...
验证码 换一张
取 消