本文介绍了放置不带文件扩展名的链接 (.php)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以配置 Apache 以不显示文件扩展名?
Is it possible to configure Apache in order not to show a file extension?
例如:假设我有 domain.com/page.php
但想要 domain.com/page
作为 url.
For example: Say I have domain.com/page.php
but want to have domain.com/page
as the url.
有什么想法吗?
推荐答案
这称为 URL 重写.我最近第一次使用它,我使用了 this教程来学习它,希望你也会发现它很棒:
This is called URL rewriting. I had to use it for the first time recently and i used this tutorial to learn it, hope you'll find it great too :
这篇关于放置不带文件扩展名的链接 (.php)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!