Copied to clipboard

Flag this post as spam?

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


  • Jinesh Kaneriya 22 posts 155 karma points
    Aug 02, 2016 @ 13:27
    Jinesh Kaneriya
    0

    404 error page not displaying if user enter xyz.com/umbraco/anything

    Hello,

    xyz.com/sdsdsdsd shows page not found 404 error(custom page).

    But when my company's QA reported issue that url xyz.com/umbraco/sadsad displays server error "The resource can not be found." instead of page not found error.

    How to handle this kind of page not found or server error error for /umbraco.

    Thanks in Advance.

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Aug 02, 2016 @ 19:41
    Dennis Aaen
    0

    Hi Jinesh,

    If you want to display your 404 page, when a user type something like this URL xyz.com/umbraco/sadsad instead of the The resource can not be found."

    Then you can add error statusCode=404 in your web.config, and then just add the url to your 404 not fund page.

    <customErrors mode="On" defaultRedirect="~/Error.html">
        <error statusCode="404" redirect="~/Error404.html"/>
    </customErrors>
    

    where ~/Error.html and ~/Error404.html are general error page and page for "Resource cannot be found" case.

    Hope this helps,

    /Dennis

Please Sign in or register to post replies

Write your reply to:

Draft