Copied to clipboard

Flag this post as spam?

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


  • Ramin 1 post 71 karma points
    Feb 04, 2019 @ 02:59
    Ramin
    0

    No 404 shown for unpublished

    Hi,

    When reaching an unpublished or deleted page, I get a white blank page. 404 error page only shows when the address has never existed. How can I force the unpublished or deleted page to trigger 404?

    I'm using Umbraco version 7.5.6 assembly: 1.0.6185.24083, running on IIS 7.5.

    Thanks :) Ramin

  • David Challener 80 posts 444 karma points c-trib
    Feb 13, 2019 @ 20:56
    David Challener
    100

    You can add a 404 page in /config/umbracosettings.config file. This sounds like you're doing this already.

    Check the link below for reference.

    https://our.umbraco.org/wiki/install-and-setup/configuring-404-pages

    Otherwise, you can set customErrors in web.config file under system.web section.

    <customErrors mode="RemoteOnly" redirectMode="ResponseRewrite">
      <error statusCode="400" redirect="~/error500.aspx" />
      <error statusCode="500" redirect="~/error500.aspx" />
    </customErrors>
    

    Hope this helps, David

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies