How to Change the ‘Website Keeps Showing the IIS Windows Server Page’ Default Page

How to Change the ‘Website Keeps Showing the IIS Windows Server Page’ Default Page

Sometimes the URL of your website lands you to the IIS default page. There have been many cases where, when people enter the link to their websites in their browser and it takes them to the index.aspx page. The cause for this is the Default Document’s setting in IIS. But do not worry if you’re facing this, we’ll show you how to change this.

  1. In your Windows Server 2022, open IIS.
  1. Open Run and type in the command inetmgr or you can search for IIS in the start menu.
    screenshot of IIS Manager in a Start menu
  1. The IIS manager will open up in a new window. In the right most section, Connections, you’ll be able to see your server name. Click on it.
    Then click on Sites and choose your site.
  1. Click on the Default Document.

    screenshot of Default Documentation file within IIS Manager
  1. In the Default Document section you’ll see a list of different documents.
     This list of documents is sorted in descending order of priority. So the file at the top of the list will have the highest priority while one in the end will have the least. In the screenshot below, you can see that the file Default.htm has the highest priority in contrast to index.php, which has the lowest priority. So when you go to the URL of this website IIS will look in the Virtual Directory and try to find these files, in the same order. As soon as a file is found, IIS loads the page.
    screenshot of Default Documentation file within IIS Manager
  1. You can also try adding a default page in this list
    , which doesn’t exist in the website. If you place it at the top of the list IIS will display an error. This indicates that whenever you go to the URL of that website IIS looks for files in the order of the list.
    screenshot of Index.html file menu with highlighted Move Up button

So one thing that you should do is move the default file at the top of the list, so that it gets the most priority. And if IIS is able to find the file in the first go it doesn’t have to go through the rest of the files, which also increases the performance of the website.

In our case we created a new file called index.html for the sake of testing. And you’ll be able to see this when you access your website by entering your domain name.

screenshot of the results

We hope to have solved your issue with this article. Now entering your website’s URL in a browser will not land you to the IIS Windows Server page.

How To Set up a VSFTPD Server on a CentOS 7 VPS or Dedicated Server

Brief Description FTP is usually insecure exposing clear-text passwords, userna
2 min read
Avi Ilinsky
Avi Ilinsky
Hosting Expert

How To Set up a VSFTPD Server on an Ubuntu 16.04 VPS or Dedicated Server

Brief Description FTP data is usually insecure since information (usernames, pa
2 min read
Eliran Ouzan
Eliran Ouzan
Web Designer & Hosting Expert

How to use phpMyAdmin to develop a website (without MySQL experience)

Brief description A web developer who is not well versed into coding websites f
2 min read
Idan Cohen
Idan Cohen
Marketing Expert

How to Install MySQL on a Windows Web Server Running Apache

This tutorial will show you how to install the MySQL database on a Windows serve
3 min read
Michael Levanduski
Michael Levanduski
Expert Hosting Writer & Tester
HostAdvice.com provides professional web hosting reviews fully independent of any other entity. Our reviews are unbiased, honest, and apply the same evaluation standards to all those reviewed. While monetary compensation is received from a few of the companies listed on this site, compensation of services and products have no influence on the direction or conclusions of our reviews. Nor does the compensation influence our rankings for certain host companies. This compensation covers account purchasing costs, testing costs and royalties paid to reviewers.
Click to go to the top of the page
Go To Top