Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I am having a really weird issue with the 404 and not sure what is happening.
I have a site setup as a scalable solution on Azure. Has a scalable front end site and single back office site.
the back office site is redirecting to the custom 404 page fine, but the scalable site is going to the "this is deliberately ugly page"
I can't see any significant difference between the configuration on both sites, other than the settings described in here https://our.umbraco.com/documentation/Getting-Started/Setup/Server-Setup/Load-Balancing/file-system-replication#mixture-of-standalone--synchronised
The 404 page exists and works if I just go directly to it.
In Umbraco settings I have the node ID set ie
<errors> <error404>11644</error404> </errors>
In web,config have
<system.web> <customErrors mode="RemoteOnly" defaultRedirect="/error"> <error statusCode="404" redirect="/404" /> </customErrors> </system.web> <system.webServer> <httpErrors existingResponse="PassThrough" /> </system.webServer>
I have run out of ideas of were to look. Anybody got any suggestions?
Have you got anything in your web.config that is handling this before getting to the Umbraco config?
Or maybe there is some IIS or Azure settings layered over the top?
There is IIS rewrites, but there isn't anything in there that should be redirecting a 404 page.
I have tried removing them all to see if made a difference, but still get the same result
I can't see any difference in the appsevice settings that would effect this either.
Try removing this
<error statusCode="404" redirect="/404" /> <httpErrors existingResponse="PassThrough" />
I don't have anything like this is my web.config. I think you have two error handling trying to do the same thing.
I just use this in the UmbracoSettings.config on it's own and it works fine.
Obvious but double check the Id matches up to your error page Id.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Custom 404 not working
I am having a really weird issue with the 404 and not sure what is happening.
I have a site setup as a scalable solution on Azure. Has a scalable front end site and single back office site.
the back office site is redirecting to the custom 404 page fine, but the scalable site is going to the "this is deliberately ugly page"
I can't see any significant difference between the configuration on both sites, other than the settings described in here https://our.umbraco.com/documentation/Getting-Started/Setup/Server-Setup/Load-Balancing/file-system-replication#mixture-of-standalone--synchronised
The 404 page exists and works if I just go directly to it.
In Umbraco settings I have the node ID set ie
In web,config have
I have run out of ideas of were to look. Anybody got any suggestions?
Have you got anything in your web.config that is handling this before getting to the Umbraco config?
Or maybe there is some IIS or Azure settings layered over the top?
There is IIS rewrites, but there isn't anything in there that should be redirecting a 404 page.
I have tried removing them all to see if made a difference, but still get the same result
I can't see any difference in the appsevice settings that would effect this either.
Try removing this
I don't have anything like this is my web.config. I think you have two error handling trying to do the same thing.
I just use this in the UmbracoSettings.config on it's own and it works fine.
Obvious but double check the Id matches up to your error page Id.
is working on a reply...