【发布时间】:2018-12-30 06:24:20
【问题描述】:
我使用谷歌应用引擎上传了我的网页,它运行良好。这是一个非常简单的网页,有 6 个静态文件(都是 .html)
我需要从 URL 中删除 .html 扩展名。 例如:我有 www.example.com/contact.html,我想要 www.example.com/contact
我当前的 app.yaml 是
runtime: php55
api_version: 1
threadsafe: true
handlers:
- url: /
static_files: website/index.html
upload: website/index.html
- url: /
static_dir: website
所有的 html 文件都在“网站”文件夹中,所以我怎样才能从 URL 中隐藏 .html 扩展名
所以请帮我解决它。
【问题讨论】:
-
我不知道这是否可以帮助你:stackoverflow.com/questions/5573485/… 但无论如何,这是一个重复的问题:stackoverflow.com/questions/48936791/…
标签: google-app-engine url url-rewriting web app.yaml