Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/77.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何让我的html立即启动,而不是在“中”;索引「;目录?[html]_Html_Web_Directory_Hosting - Fatal编程技术网

如何让我的html立即启动,而不是在“中”;索引「;目录?[html]

如何让我的html立即启动,而不是在“中”;索引「;目录?[html],html,web,directory,hosting,Html,Web,Directory,Hosting,我希望在启动时立即启动html文件,但现在它向我显示: 我使用免费网络托管,如何使其成为访问我的网站时实际启动的主文件或根文件?尝试将文件erjan_sample.html重命名为index.html。将您的.html重命名为“index.html”只需将根站点的名称更改为index.html尝试将文件erjan_sample.html重命名为index.html/Default.html阅读有关该文件的详细信息 您可以将DirectoryIndex设置为所需的任何文件。谢谢大家!但这个答案也

我希望在启动时立即启动html文件,但现在它向我显示:


我使用免费网络托管,如何使其成为访问我的网站时实际启动的主文件或根文件?

尝试将文件erjan_sample.html重命名为index.html。

将您的.html重命名为“index.html”

只需将根站点的名称更改为index.html

尝试将文件erjan_sample.html重命名为index.html/Default.html

阅读有关该文件的详细信息


您可以将DirectoryIndex设置为所需的任何文件。

谢谢大家!但这个答案也向我透露了ht访问文件的一些细节