【发布时间】:2018-05-24 14:42:20
【问题描述】:
我有一个包含 faq.html 页面和 where-to-buy.php 页面的登录页面。我想从 URL 的末尾删除 .html/.php 并为所有 URL 添加一个尾部斜杠。所以:
www.website.com/faq.html -> www.website.com/faq/
www.website.com/where-to-buy.php -> www.website.com/where-to-buy/
如何在 Nginx 中做到这一点?谢谢。
【问题讨论】:
标签: nginx url-rewriting