Copied to clipboard

Flag this post as spam?

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


  • Gísli Freyr Svavarsson 43 posts 126 karma points
    Feb 27, 2015 @ 15:17
    Gísli Freyr Svavarsson
    0

    Culture controlled 404 pages on Azure.

    Hey there community

    I'm working on a multi-cultural site in umbraco 7.6.1. and i'm using Azure webservices.
    But the culture preferences for the 404 site doesn't seem to be working properly. 

    I've set the errorpages in umbracoSettings.config

    <errors> 
        <error404> 
            <errorPage culture="default">1306</errorPage> 
            <errorPage culture="en-US">1306</errorPage>   
      <errorPage culture="fr-FR">1435</errorPage> 
      <errorPage culture="nb-NO">1369</errorPage> 
        </error404> 
    </errors>
    

    and i've also added the httpErrors section to the system.webServer in web.config for the Azure settings

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

    I always land on the english page if I try and get the french or Norwegian pages.

    Can anyone help me with this problem?

  • Gísli Freyr Svavarsson 43 posts 126 karma points
    Mar 13, 2015 @ 14:40
    Gísli Freyr Svavarsson
    0

    Hey there folks

    altough I dislike people who 'up' their posts I have to do that now... I've been unsuccessful at figureing this out, since I posted it. 

    Does anyone here know how I can fix this or at least where I can find some documentation for it

    best regards

  • Vilpa 1 post 72 karma points
    Jan 20, 2016 @ 12:10
    Vilpa
    1

    Hi Gisli,

    Just add a piece of code to Azure web.config before the closing tag

       <httpErrors existingResponse="PassThrough"/> 
     </system.webServer>
    
Please Sign in or register to post replies

Write your reply to:

Draft