我正在尝试删除.php
&来自我的网站的.html
。我在主目录中有一个子文件夹,如下这个
mywebsite.com/usa/
在美国文件夹里面,我有.htaccess,我有这个代码
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
“mywebsite.com/usa/test.php”的结果,请给我以下结果
http://mywebsite.com/home1/user/public_html/usa/usa/test
注意:我不想打扰包括test.php中的函数文件