404handler doesn't show custom error page when url is something like "blabla.html"
The response is empty.
Test url: http://spisbedre.dk/kontakt.html, even our UrlTracker doesn't work.
404handlers.config
url's without .html works fine, redirects to custom error page
Which is a little hacky as it basically means a 404 redirects to a unknow aspx page which umbraco then picks up. and forwards via your 404 handler in umbraco
You may find that you don't get your error pages and IIS takes over.
To get Umbraco to handle your errors for 404 insert the following
element before the end of the system.webServer section of the
web.config.
Now the errors you
configured in the umbracosettings.config should display.
I tried following that guide, but it didn't work. I think it has something to do with Umbraco 7.
If IIS takes over i should get an page displaying file not found. But it shows an empty page. As a standard response for umbraco v7 editors when not found.
<settings>
<content>
<errors>
<error404>1</error404>
<!--
The value for error pages can be:
* A content item's integer ID (example: 1234)
* A content item's GUID ID (example: 26C1D84F-C900-4D53-B167-E25CC489DAC8)
* An XPath statement (example: //errorPages[@nodeName='My cool error']
-->
</errors>
Have you tried to change ID-number between<error404>1</error404> (here 1) to the ID of your 404-document in umbracoSettings.config?
404handler doesn't show custom error page
404handler doesn't show custom error page when url is something like "blabla.html" The response is empty. Test url: http://spisbedre.dk/kontakt.html, even our UrlTracker doesn't work. 404handlers.config url's without .html works fine, redirects to custom error page
How do i go about this?
Best regards
Rasmus
Think this one does somewhat depend on which version of IIS is involved in your hosting.
As not all would by defatult use asp.net pipeline for all requests.
IIS7+
We add in the web.config
<httpErrors errorMode="Custom">
<remove statusCode="404" subStatusCode="-1" />
<error statusCode="404" prefixLanguageFilePath="" path="/1000.aspx" responseMode="ExecuteURL" />
</httpErrors>
Which is a little hacky as it basically means a 404 redirects to a unknow aspx page which umbraco then picks up. and forwards via your 404 handler in umbraco
Cheers works like wonders!
Here's a better way:
Source
I tried following that guide, but it didn't work. I think it has something to do with Umbraco 7.
If IIS takes over i should get an page displaying file not found. But it shows an empty page. As a standard response for umbraco v7 editors when not found.
I Think.
I also could never get this approach to work in u4.11 static files not found just resulted in a white screen.
Worked for me in Umbraco 7.1.6 (IIS 8.5).
It does not work for me in IE, Chrome and Firefox works fine.
If anyone has found a working solution , please share.
Have you tried to change ID-number between
<error404>1</error404>
(here 1) to the ID of your 404-document in umbracoSettings.config?This does not work in Umbraco 7.5.
Try the steps in Morten Sørensen's blog below. These steps worked for me.
https://blog.mortenbock.dk/2017/02/03/error-page-setup-in-umbraco/
(PS Thanks Morten)
is working on a reply...