Copied to clipboard

Flag this post as spam?

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


  • jigar 170 posts 233 karma points
    May 07, 2021 @ 08:27
    jigar
    0

    404 now working for Umbraco Backoffice e.g /umrbaco/xyz

    Hi All,

    We are running a website on Umbraco version 8.5.4 and there are some issues with the 404 page.

    Following is the scenario

    https://www.mywebsite.com/abc working as per expectation and shows a 404 page from content tree

    https://www.mywebsite.com/umbraco/abc not working as per expectation and stand asp.net error page as shown in below image

    We have the following rules in umbracoSetting.config

       <errors>
          <error404>1260</error404>    
        </errors> 
    

    And we have the following rules on the web.config.

        <httpErrors existingResponse="PassThrough">
      <remove statusCode="500" subStatusCode="-1" />
      <remove statusCode="400" subStatusCode="-1" />
      <remove statusCode="404" subStatusCode="-1" />
      <remove statusCode="403" subStatusCode="-1" />
      <error statusCode="500" path="/500.html" responseMode="ExecuteURL" />
      <error statusCode="400" path="/en/404" responseMode="ExecuteURL" />
      <error statusCode="404" path="/en/404" responseMode="ExecuteURL" />
      <error statusCode="403" path="/en/404" responseMode="ExecuteURL" />
    </httpErrors>
    

    So basically when /umbraco is there the 404 redirections are not working as per expected behavior.

    Image given below.

    enter image description here

    Many thanks, Jigar

    P.S:- The same set of configurations works well on V7 websites.

  • Erik Eelman 81 posts 321 karma points
    May 07, 2021 @ 09:42
    Erik Eelman
    1

    Hi Jigar,

    I've got this working using the customErrors section in the web.config:

    enter image description here

Please Sign in or register to post replies

Write your reply to:

Draft