Copied to clipboard

Flag this post as spam?

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

  • Martina R 9 posts 90 karma points
    Jan 22, 2020 @ 10:42
    Martina R

    Umbraco 7 - Custom 404 page: problems with missing images and urls that contain a dot '.'


    I'm having a problem that is quite widespread from what I can see after a "quick survey" of big online umbraco websites:

    I've created a custom 404 page and I've implemented a custom IContentFinder for a multilingual website => the custom 404 page works well except in 3 (2) cases:

    1) <= notice the dot '.' at the end.


    2-3) or any url that contains a dot '.' like


    At the moment I'm using a temporary fix thanks to SEO-Checker 404 settings (SEO-Checker => Settings => Domain-Settings => node => 404 settings) but this is not an ideal solution since:

    • I have to create a custom 404 template for every language
    • SeoChecker is intercepting the request before it can reach my custom IContentFinder implementation

    I would like to know which is the idiomatic way of treating this problem in umbraco...

    thank you, Martina

  • Jonathan Distenfeld 105 posts 615 karma points
    Jan 23, 2020 @ 07:05
    Jonathan Distenfeld

    Hi Martina,

    Seems like urls with dots are handled differently by umbraco. Maybe ths post could help you out?

    ~ Jonathan

  • Martina R 9 posts 90 karma points
    Jan 23, 2020 @ 17:08
    Martina R

    Thank you Jonathan.

    To be honest I already saw that post and tried all the proposed solutions to no avail.

    Today I reverted to a clean state and tried again.

    This worked for me:

    <httpErrors existingResponse="Replace" errorMode="Custom">
        <remove statusCode="404" subStatusCode="-1" />
        <error statusCode="404" prefixLanguageFilePath="" path="..." responseMode="ExecuteURL" />

    It seems I was using existingResponse="PassThrough" instead of existingResponse="Replace"

Please Sign in or register to post replies

Write your reply to: