第1个回答 推荐于2018-03-03
1 在PhpStudy中设置,index.html为默认首页后输入网址就可以了。
2 在网站根目录下创建web.config,并输入以下代码也可以设置默认首页。
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<defaultDocument>
<files>
<clear />
<add value="index.html" />
</files>
</defaultDocument>
</system.webServer>
</configuration>本回答被网友采纳