For a website on a Windows-based Web Hosting instance, the default homepage that you configure in the host management console may not be applied. This can be caused by incorrect homepage priority settings or errors in the website's configuration file.
Symptoms
When you access your site on a Windows-based Web Hosting instance, you are redirected to a different page instead of the default homepage you configured in the Web Hosting console.
Possible causes
-
The homepage priority settings are incorrect in the host management console.
-
The default homepage is configured incorrectly in the web.config file.
Solution
-
Log on to the Web Hosting console.
-
Find your Web Hosting instance and click manage in the actions column.
-
In the navigation pane on the left, choose .
-
In the homepage priority settings section, check whether the default homepage has the highest priority.
-
If the priority is correct, proceed to the next step.
-
If the priority is incorrect, click the
icon to move the default homepage to the top of the list, and then proceed to the next step.
-
-
Modify the web.config file.
-
Use an FTP tool to connect to your Web Hosting instance.
For more information, see Manage website files with FileZilla.
-
Download the web.config file to your local host.
In this example, the web.config file is stored in the site root directory (/). In the site root directory (/), find the web.config file, and then double-click it or drag it to your local host.
ImportantThe location of the web.config file may vary depending on the developer's practices. If you cannot find the web.config file in the site root directory (/), contact your website developer to locate the file.
-
On your local host, open the web.config file with a text editor, such as EditPlus.
-
Search for the keyword
add value, and check whether the file name specified in thevalueattribute is correct.Based on whether the parameter after the keyword
add valueis correct, perform one of the following actions:-
If the parameter after
add valueis correct, proceed to Step 6. -
If the parameter for
add valueis incorrect, continue to the next step.
-
-
Add the
<clear />element before the incorrect line.<configuration> <system.webServer> <defaultDocument> <files> <clear /> <add value="index.asp" /> </files> </defaultDocument> </system.webServer> </configuration> -
Save and close the file.
-
Use your FTP tool to upload the modified web.config file back to the Web Hosting instance.
On your local host, select the saved web.config file, and then double-click it or drag it to the site root directory (/) of your Web Hosting instance.
-
-
Visit your website again to verify that the default homepage loads correctly.
If the issue persists, submit a ticket for assistance.