通过www.example.com/page代替www.example.com/page.php访问URLScom、example、www、URLS

2023-09-02 00:46:39 作者:愈来愈近的渐行渐远。

什么处理扩​​展的禁用?它是Apache或PHP的安装?如何将一去配置那些不需要的PHP扩展的Web服务器?是否有一个选项,将使双方www.example.com/page.php和www.example.com/page工作的网址是什么?

What handles the disabling of the extension? Is it APACHE or the PHP install? How would one go about configuring the web server where the .php extension is not required? Is there an option that would make both www.example.com/page.php and www.example.com/page work as the URL?

推荐答案

这是通过URL重写的Apache: http://www.addedbytes.com/apache/url-rewriting-for-初学者/

It's URL rewriting through Apache: http://www.addedbytes.com/apache/url-rewriting-for-beginners/