views:

34

answers:

2

I installed Umbraco 4.5 and it is running fine. one thing i cant get to work though, is the 404. When it hit a page that does not excist it shows the default IIS7 404 page, and not the built-in umbraco 404 page.

So i am asuming it is a setting in the iis i have to change - but which?

+2  A: 

Copy from http://our.umbraco.org/forum/using/ui-questions/8244-IIS7--404:

Basically, you need to add

<location path="Site Description">
  <system.webServer>
    <httpErrors existingResponse="PassThrough" />
  </system.webServer>
</location>

to your applicationHost.config file where "Site Description" is the name of your site in IIS7.

Andreas Paulsson
+1  A: 

in config/umbraco.settings you can set the umbraco page to load for custom 404

<errors>
  <!-- the id of the page that should be shown if the page is not found -->
  <!--        <errorPage culture="default">1</errorPage>-->
  <!--        <errorPage culture="en-US">200</errorPage>-->
  <error404>1296</error404>
</errors>
Justin Moore