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
Hi, I am having some trouble setting up multiple 404 pages on a site with 6 different languages. I have done this before without having any problems, but this solution must differ from that since the setup is virtually identical, the only thing that differs is this <add key="umbracoHideTopLevelNodeFromPath" value="false" /> which is set to false on the site I am having problems with.Here is what I have done so far.In the umbraco.settings file I have added this:
As far as i know this should be enough for it to work.
In my local dev setup I have added to sites to the host file like this: site.dk.local, site.en.local etc. In Umbraco I have set these hostnames on each individual site along with the culture. So the cultures should also be set (and are different on every site).I found some other posts that suggested that I added <httpErrors existingResponse="PassThrough" /> to the web.config, but that did not solve anything. No matter what I get the standard error page.Can anyone see what I am missing? Any help will be much appreciated./Thor
Hi Thor,Which version of Umbraco are you running?
Hi Anders, I'm running 18.104.22.168
Can I suggest an alternative approach, what about using the uComponents Multi-site Page Not Found?
You won't need to hard code node Id's in a config file that way either.
Hi Matthew, Thank you for your reply. I thought about that aswell, however I read somewhere that this approach only works if every site has different hostnames which is not the case on this site where its a combination of different hostnames and site.local/en/, site.local/fr/ - which is why I have set umbracoHideTopLevelNodeFromPath to false. /Thor
In that case two things to check:
1) Check the order / contents of the /config/404handlers.config file to ensure that the correct handler is getting the 404 errors to process.
2) I'm not sure that the nesting in your /config/umbracoSettings.config is correct:
<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>
Hope that helps,
Hi Matthew, I tried that aswell, but nesting that way only works if you have 1 site, not multiple. /Thor
So you've tried the <errorPage culture=... nodes directly under the <errors> node without the <error404> in between?
Yep i tried that aswell, still no luck. /Thor
Thor, have you found a solution? I'm having the same problem, and no idea why it happens so.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted