On a fresh install of Craft 2.3.2644, using the hostname alone, example.com returns an error, "The page cannot be displayed because an internal server error has occurred".

If I include /index.php (example.com/index.php), then the expected index template is returned, displaying the "Welcome to..." entry.

However, example.com/news returns the news template correctly, even without index.php in the URI.

  • Craft 2.3.2644
  • Windows Server 2008 R2
  • IIS 7.5

The web.config file included with the Craft install is present at web root.

What am I missing?

1 Answer 1


If I recall, IIS doesn't include index.php as a default document when looking for a page to load in a directory, but only things like index.html, index.htm, deafult.html, etc.

Here's how to change it.

  • I already added index.php to the default document list and it's first in the priority order. Commented May 22, 2015 at 19:43
  • Can you check the IIS error logs? Should have the underlying internal server error message there.
    – Brad Bell
    Commented May 22, 2015 at 19:53
  • I don't think I have direct access to server logs. I'll have to check with the hosting provider to see if that's something I can get. Commented May 22, 2015 at 20:00
  • HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid. Commented May 22, 2015 at 21:13
  • 1
    After a little work with the hosting provider, this has been resolved. It appears some of the statements in web.config were causing conflicts (either the urlCompression or defaultDocument sections). I removed those to no apparent ill effect, leaving only the rewrite. All is working for now. Thanks for the assist. Commented May 26, 2015 at 16:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.