网站上可以有多个index.html可以吗? [英] Is it OK to have more than 1 index.html on your website?

查看:77
本文介绍了网站上可以有多个index.html可以吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在子域的根文件夹中有一个 index.html

I have a index.html on my root folder of a subdomain

example.example.com/index.html

然后创建第二个文件夹(位于根文件夹中)

and then I made a second folder (which is located in the root folder)

example.example.com/folder/index.html

这是很好/推荐吗?

PS,我对此很陌生,所以我有一个后续问题.这是否与站点地图有很大的联系?人们通常会使用应用程序为他们进行站点映射"吗?

PS I'm pretty new to this so I have a follow up question. Does this have tie in to sitemaps in a big way and do people usually use an app to do the their "sitemapping" for them?

推荐答案

可以,但是每个文件夹只能有1个.如果未指定另一个,则index.html是您的Web服务器将使用的文件,因此通常在每个目录中都有一个.

That's fine, but there should only be 1 per folder. The index.html is the file your webserver will serve up if another is not specified, so it is normal to have one in each directory.

就创建站点地图而言,有许多在线工具可以为您创建XML站点地图,而这正是人们通常使用的工具.

As far as creating the sitemap, there are a lot of tools online that will create an XML sitemap for you and that is what people usually use.

这篇关于网站上可以有多个index.html可以吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆