Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Dan Sunesen 45 posts 145 karma points
    Feb 15, 2013 @ 09:57
    Dan Sunesen
    0

    404 on multilingual site - Y U SO DIFFICULT?

    Hey guys,

    I hope someone can help me get this fixed.. I've been looking through a couple of posts here on Our regarding this issue. 

    For some it helps to write the correct error404 in umbracoSettings.config. Some people solves the problem by applying the following to applictionHost.config in /System32/inetserv/config:

     

    <location path="Site name on IIS">
    <system.webServer>
    <httpErrors existingResponse="PassThrough" />
    </system.webServer>
    </location>

     

     

    ... Which help me a little. I can now see one of my 404 pages, but regardless what culture/language I'm on, it still only uses one of my 404's.

     

    I've got the following in my umbracoSettings.config:

     

    <errors>
        <error404>
            <errorPage culture="en-US">1202</errorPage>
    <errorPage culture="en-GB">1203</errorPage>
        </error404>
    </errors>

     

     

     

    But even if i'm on my /uk site (English (United Kingdom) and I try to reach a 404 page, I get the 404 for my /en site (English (United States)..

     

    I've also tried to paste in (into web.config):

     

    <httpErrors errorMode="Custom" existingResponse="Replace">
    <remove statusCode="404" subStatusCode="-1" />
    <error statusCode="404" prefixLanguageFilePath="" path="/404.aspx" responseMode="ExecuteURL" />
    </httpErrors>

     

    ... and this one (into web.config):

     

    <httpErrors existingResponse="PassThrough" />

     

    Inside  at the bottom of it. Not both on the same time, but I've tried out each one. No result.

     

    So, am I missing something? From what I've read, some fixes it by applying custom 404 handlers, but it seems a bit too much, just to achieve this? Doesn't it come out of the box?

     

     

    Any suggestions? :)

     

    Br,
    Dan


    P.S.: Yup, I do have hostnames on the different sites.

  • Dan Sunesen 45 posts 145 karma points
    Mar 17, 2013 @ 12:57
    Dan Sunesen
    0

    So, does anyone know a fix to my problem?

  • Alex Skrypnyk 6132 posts 23951 karma points MVP 7x admin c-trib
    Mar 17, 2013 @ 14:14
    Alex Skrypnyk
    0

    Hi Dan,

    http://our.umbraco.org/forum/using/ui-questions/38902-custom404-not-working-properly-in-multilanguage-website

    THis is the problem in umbraco, you sould create custom error handling module.

    Thanks

    Alex

  • Sébastien Richer 194 posts 430 karma points
    Aug 20, 2014 @ 21:42
    Sébastien Richer
    0

    I have the exact same issue. I solved it with code. I really wish this would be out of the box in Umbraco!

  • Richard Soeteman 4035 posts 12842 karma points MVP
    Aug 21, 2014 @ 11:06
    Richard Soeteman
    0

    I agree that it is hard to setup multilingual/multidomain 404 pages. For that reason I made it configurable via a simple nodepicker in SEO Checker and let SEO Checker handle the 404's instead of Umbraco. Hope it helps someone.

    404 settings in SEOCechker

    Best,

    Richard

Please Sign in or register to post replies

Write your reply to:

Draft