Curious about the 404 pages in the multi-language starter kit
I was looking into how to set up the 404 pages for the different sites in my install and I remembered that the multi-language starter kit has different 404 pages for each site.
I did a quick test and it didn't seem to work so I wondered if it was supposed to and if so, how it is put together.
I know uComponents have a solution but it's obviously not that.
We are using the built in Umbraco 404 handling, which depends on the settings in the umbracoSettings.config. You just write the language and the page id into the config and it will work. Needs one domain per language though, but so does the dictionary items, so we allways do it that way.
This is the correct way of writing it:
<errors>
<!-- the id of the page that should be shown if the page is not found -->
Curious about the 404 pages in the multi-language starter kit
I was looking into how to set up the 404 pages for the different sites in my install and I remembered that the multi-language starter kit has different 404 pages for each site.
I did a quick test and it didn't seem to work so I wondered if it was supposed to and if so, how it is put together.
I know uComponents have a solution but it's obviously not that.
Regards,
Matt
Hi Matt,
We are using the built in Umbraco 404 handling, which depends on the settings in the umbracoSettings.config. You just write the language and the page id into the config and it will work. Needs one domain per language though, but so does the dictionary items, so we allways do it that way.
This is the correct way of writing it:
<errors>
<!-- the id of the page that should be shown if the page is not found -->
<error404>
<errorPage culture="da-DK">1063</errorPage>
<errorPage culture="en-GB">1812</errorPage>
</error404>
</errors>
/Rune
Thanks Rune,
I didn't know you could do that. :)
Yeah, it's totally oldschool. But it works and it's simple for the editors.
/Rune
is working on a reply...