【发布时间】:2014-03-01 22:03:42
【问题描述】:
我正在为我的个人需求创建一个网站。我有不同的页面,如index.html、about.html、contact.html 等...
默认显示方式为mysite.com/index.html 或mysite.com/contact.html
但是有什么办法可以隐藏扩展部分.html,只显示像mysite.com/about/或mysite.com/contact/这样的url正文??
请给我建议。
【问题讨论】:
-
嗯
mysite.com/about/通常与mysite.com/about/index.html相同(取决于服务器设置)。对于更动态的方法,您将使用 URL 重写en.wikipedia.org/wiki/Rewrite_engine -
@deceze,谢谢你也注意到我这个帖子!
标签: url pretty-urls