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
In a 1:1 multilingual umbraco 8 site with 3 variants, the ideal goal for my 404 not found page is:
(i.e. the first segment in the bad url can still be used to determine language context.)
I have defined a “IContentLastChanceFinder” content finder as per https://our.umbraco.com/documentation/reference/routing/request-pipeline/IContentFinder
This almost works well, but the trouble is my error configuration means the umbraco 404 response is trumped by the IIS level settings, and triggers a second 404 url by which time the original language context has been lost
<httpErrors existingResponse="Replace" errorMode="Custom">
<remove statusCode="404" />
<remove statusCode="500" />
<error statusCode="404" path="/404contentfinder" responseMode="ExecuteURL" />
<error statusCode="500" path="/ServerError.aspx" responseMode="ExecuteURL" />
The 500 rule is so the YSODs are replaced with a ‘friendly message’.
I actually only want the httpErrors config to Replace 500, it would be great if I could “pass through” the 404 from Umbraco but alas the MS team don’t allow it to be set per status code ☹
Anyone have any working solutions?
btw sorry this is in the wrong group "Using Umbraco And Getting Started" - i can never work out how to post to a certain category i.e. Umbraco 8
would still be great to hear peoples thoughts/ideas here. :)
I always use this package and use a content page as 404.
This way it works with variants out of the box:
ok thanks will check it out :)
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted