Come work for Umbraco - The Umbraco HQ are hiring Project managers, .NET developers and DevOps people!
Instead of creating a 404 error page in the content and use the page ID, can´t I just make a static html page and save it in a folder in the root.If possible, what should I write in the config files?
Can save it anywhere in your umbraco installation, as it won't be processed by umbraco (it's a plain old static html page), just need to update your web.config according to this post.
Can´t see what Im doing wrong
In my web.config I added this line
<!--<customErrors mode="RemoteOnly" />--> <customErrors mode="On" redirectMode="ResponseRewrite" defaultRedirect="fejlside.aspx" />
In my umbracosettings.config I change it back to this
<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>1</error404> </errors>
I have placed the fejlside.aspx at the same level as my web.config
Can you se what else I can do?
you shouldn't be using the <errors> anymore, only setting the web.config value. Can you set defaultRedirect="/fejlside.aspx"?
I have deleted the <errors> in th umbracosettings.config and and change the path but nothing helps
I'm having the same problem, I've set in web.config but at least in case of a 404 I still get the "No umbraco document matches the url" page. I remember doing the same for a 4.5.2 website and it worked fine. Did you manage to find a solution?
EDIT: the problem was in 404handlers.config . I did remove the contents of <NotFoundHandlers>, but not the node itself. Removing it solved it.