相同的名称我如何使它所以这样的:文件夹和php文件与网站
www.example.com/product
将指向此文件:/product.php
但这:
www.example.com/product/thing.php
将指向这个目录:/product/thing.php
我在我的.htaccess这些重写规则:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
它让这样的:
www.example.com/product.php
进入这个:
www.example.com/product
问题是什么?你试图使用哪个网址?你得到什么错误? – anubhava
看到我的回答http://stackoverflow.com/a/33319570/5397119 –