Copied to clipboard

Flag this post as spam?

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


  • projectsVW 8 posts 78 karma points
    Jun 27, 2018 @ 13:19
    projectsVW
    0

    Display 404 error page as per culture not working

    Display 404 error page as per culture not working in Umbraco 7.7

    <error404>
                <errorPage culture="default">26007</errorPage>
                <errorPage culture="en-US">26007</errorPage>
                <errorPage culture="fr-FR">26008</errorPage>
                <errorPage culture="es-ES">26009</errorPage>
    </error404>
    

    French 404 Error Page Redirected to English 404 Error Page

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jun 27, 2018 @ 13:22
    Jan Skovgaard
    1

    Hello

    Can you provide a bit more information about your setup? Have you configured the 404 pages in the /config/umbracoSettings.config file - If so can you please share what your configuration looks like? If not can you then please tell us how you're serving up the 404 pages instead?

    And did you just upgrade an existing site from a previous version of Umbraco and started seeing this happen? Or is it something you have noticed on a fresh installation?

    Looking forward to hearing from you.

    /Jan

  • projectsVW 8 posts 78 karma points
    Jun 27, 2018 @ 13:27
    projectsVW
    0

    This is My umbracoSettings.config file

    <errors>
      <!--<error404>39602</error404>-->
      <error404>
            <errorPage culture="default">24009</errorPage>
            <errorPage culture="en-US">26007</errorPage>
            <errorPage culture="fr-FR">26008</errorPage>
            <errorPage culture="es-ES">26009</errorPage>
      </error404>
      <!--
        The value for error pages can be:
        * A content item's integer ID   (example: 1234)
        * A content item's GUID ID      (example: 26C1D84F-C900-4D53-B167-E25CC489DAC8)
        * An XPath statement            (example: //errorPages[@nodeName='My cool error']
      -->
      <!--
        <error404>
            <errorPage culture="default">1</errorPage>
            <errorPage culture="en-US">200</errorPage>
        </error404>
       -->
    </errors>
    
  • projectsVW 8 posts 78 karma points
    Jun 27, 2018 @ 13:30
    projectsVW
    0

    French and Spanish 404 Error Page redirected to English 404 Error Page

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jun 27, 2018 @ 14:16
    Jan Skovgaard
    0

    Hello again

    Ok I see that you have updated the initial post and also added the configuration setting in an additional post - I took the liberty to cut the second post down to only show the <errors> section, so we don't need to scroll through the entire file :)

    When you say it does not work in 7.7 - Does that mean that these settings has previously worked for you? I'm trying to figure out if this has stopped working after en upgrade or if you have been running v7.7 for a while?

    How have you setup the french and spanish sites? Do they have a hostname setup on the homepage root node? If not then that might be the reason why you get the english error 404 page.

    /Jan

Please Sign in or register to post replies

Write your reply to:

Draft