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

    No 404 shown for unpublished


    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 340 karma points c-trib
    Feb 13, 2019 @ 20:56
    David Challener

    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.

    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" />

    Hope this helps, David

Please Sign in or register to post replies

Write your reply to: