Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
拥有一个网站的自定义 URI 结构,而不是每个以 .php 结尾的页面。
例如,如果我希望 example.com/balderdash 包含(balderdash.php)这就是如何做到的。
if($_SERVER["REQUEST_URI"] == 'balderdash'){ include('balderdash.php') }
在 index.php 文件夹中?
您需要的是“htaccess url 重写”。
请阅读:http ://corz.org/serv/tricks/htaccess2.php