【发布时间】:2020-06-03 19:00:15
【问题描述】:
我想减少我在 firebase 中网页的 URL 长度。 html 文件位于公共文件夹内的 html 文件夹中。现在索引页的 URL 是:www.lstein-28b62.web.app/htmlfolder/index.html 是否可以将其更改为 www.lstein-28b62.web.app/index.html 而无需将 index.html 文件从 htmlfolder 子文件夹中取出? 我基本上只是想隐藏 /htmlfolder/ 子文件夹。它应该类似于 js 函数 window.history.pushState(),尽管如果页面被刷新,这会产生问题。
【问题讨论】:
-
使用.htaccess重写规则mediatemple.net/community/products/dv/204643270/…
-
.htaccess 不能与 firebase 一起使用
-
还有符号链接?在 *nix 系统中,您可以链接到文件夹并像真实路径一样使用
标签: html firebase url firebase-hosting