我的网址是:http://www.example.com/home.php 我想在最终用户以http://www.example.com/home浏览我的网站时显示它。我知道这可以通过 .htaccess 文件来完成。
Following is the htacces file:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.+)$ $1.php
.htaccess 文件中的上述代码没有发生任何事情。我想显示没有 .php 扩展名的整个网站页面。谁能建议我如何做到这一点