: Some hostings might not have mapping for default file to be used as homepage, thus you might sometimes need to add it. If this is Apache-based hosting(commonly Linux hostings use Apache), you
Some hostings might not have mapping for default file to be used as homepage, thus you might sometimes need to add it.
If this is Apache-based hosting(commonly Linux hostings use Apache), you will want to create/add new line to .htaccess file like so:
.htaccess file:
DirectoryIndex index.html
If it's Windows-based hosting running IIS, check how to set default directory index here.
web.config file:
<?xml version="1.0"?>
<configuration>
<system.webServer>
<defaultDocument enabled="true"> <!-- this line enables default documents for a directory -->
<files>
<clear/> <!-- removes the existing default document list -->
<add value="foo.htm"/> <!-- foo.htm is now the default document -->
<add value="foo.php"/> <!-- 2nd default document in search order -->
<add value="foo.aspx/> <!-- 3rd default document in search order -->
<add value="foo.cfm/> <!-- 4th default document in search order -->
</files>
</defaultDocument>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
</configuration>
More posts by @Rambettina238
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.