Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

404 page in Umbraco?

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?

like image 708
kastru Avatar asked Aug 31 '10 20:08

kastru


People also ask

What is umbraco cloud?

The open-source .NET based CMS with an intuitive editing experience, maximum flexibility for developers, and seamless integrations. Explore Umbraco CMS. The best place to work with Umbraco CMS. Spin up a site in just 2 minutes and let us take care of a ton of tedious tasks for you.

How do I create a 404 page in Umbraco?

Open your Umbraco back-end, go to the Content section, create a new page and call it 404, add any content you want and click on the Save and Publish button.


1 Answers

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.

The applicationHost.config file is located in: system32\inetsrv\config

Edit:

As stated in the comments if this answer, you should add this section in your web.config instead which is way better, you should always avoid altering config files outside your own application that may affect other applications.

like image 152
Andreas Paulsson Avatar answered Dec 01 '22 00:12

Andreas Paulsson