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
    1 week ago
    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 44 posts 215 karma points
    2 days ago
    David Challener
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft