Copied to clipboard

Flag this post as spam?

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


  • Fredrik 6 posts 138 karma points
    18 days ago
    Fredrik
    0

    xStatic and 404 not found page

    Hi,

    I'm using xStatic to auto-generate static pages for my Umbraco site when something new is published. I added a 404 page not found page.

    It works well when I do run the site locally but not on the site with the auto-generated pages.

    Does anyone know if this should be possible? I have added following code to my appsettings.json:

    "Error404Collection": [ { "Culture": "default", "ContentKey": "xxxxxx-xxx-xxxxxx-xxxx-xxxx-xxx" } ]

  • Fredrik 6 posts 138 karma points
    17 days ago
    Fredrik
    100

    I solved this by functionality in iis for handling error pages. I removed the rows in appsettings.json (Error404Collection) and set url for error pages in iis (for my website) for 404 page not found error to my Umbraco error page.

    Works perfect.

Please Sign in or register to post replies

Write your reply to:

Draft