Is it OK to have more than 1 index.html on your website?

怎甘沉沦 提交于 2021-02-08 09:51:15

问题


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

i.e. 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

Is this good/recommended?

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:


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.

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.




回答2:


Its ok to have multiple index.html files, may be some experts will say its not a recommended way. But in my point of view as long as you know that what's going on you can have tons of index.html .



来源:https://stackoverflow.com/questions/23312717/is-it-ok-to-have-more-than-1-index-html-on-your-website

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!