gpt4 book ai didi

web - 在每个页面自己的文件夹中使用 index.html 来获取干净的 URL

转载 作者:塔克拉玛干 更新时间:2023-11-03 02:35:02 24 4
gpt4 key购买 nike

我想知道他们将每个网页作为其自己的文件夹中的 index.html 以实现干净的 URL 是否有任何问题。您只需链接到目录,无需 mod_rewrite 即可自动提供 index.html。例如,而不是:

 .
|-about.html url: example.com/about.html
|-contact.html url: example.com/contact.html
|-index.html url: example.com

你可以:

 .
|-about
| \-index.html url: example.com/about/
|-contact
| \-index.html url: example.com/contact/
|-index.html url: example.com/

我找不到关于此的任何好的搜索结果。他们做这样的事情有什么我没有预见到的问题吗? SEO 怎么样?

最佳答案

创建 domain.com/contact.html 并使用 .htaccess 文件截断 .html 更容易,因此您的 URL 将是 domain.com/contact - 无需创建文件夹

关于web - 在每个页面自己的文件夹中使用 index.html 来获取干净的 URL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21395738/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com