IIS 10 not serving (404.7) default document with File Name Extensions enabled

If you disable Allow unlisted file name extensions in IIS using the Request Filtering module you’ve always had to then allow “.” (just a period by itself) in the File Name Extensions to then allow IIS to feed up the default document without it being in the URL.  For example http://www.google.com versus http://www.google.com/index.htm which without the . added won’t work.  In IIS 10 on a couple of websites we found they would throw 404.7 errors when this was configured even with the . in the allow list.

On these websites we had to go into the Default Document portion of the website and ensure the item that is the root default document of the website is at the top of the list.  This was never an issue in previous IIS versions and the root default document could be anywhere in the list.

Example that worked for http://www.website.com/default.htm on all previous versions of IIS

  • index.htm
  • index.html
  • default.htm
  • default.aspx

What we found was required for IIS 10 to get http://www.website.com/default.htm to load without 404.7 error

  • default.htm
  • index.htm
  • index.html
  • default.aspx

Comments or questions?

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.