把没有扩展链接(.PHP) [英] put links without file extension (.php)
本文介绍了把没有扩展链接(.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 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)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文