Mobile app version of vmapp.org
Login or Join
Rambettina238

: 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

@Rambettina238

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>

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Rambettina238

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme