Copied to clipboard

Flag this post as spam?

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


  • Daxesh Dave 2 posts 72 karma points
    Mar 22, 2023 @ 10:03
    Daxesh Dave
    0

    Redirect All other Inavlid URLs to 404 page except listed in URL Tracker

    Hi, we have project using Umbraco 9.5.0 with .net 6. We have implemented Url Tracker functionality.

    our Client needs to redirect all the invalid URLs to static 404 page except URLs mentioned in URL tracker list.

    Any Help would be nice to have. If possible, please provide code snippet for the solution.

  • Dennis 75 posts 397 karma points MVP
    Mar 22, 2023 @ 11:40
    Dennis
    0

    Hi there!

    I recommend that you take a look at the package hotchilli.umbraco.pagenotfound. With this package installed, you can simply configure 404 pages for your website. the plugin has good documentation to tell you how to set it up.

    I hope that helps!

  • Daxesh Dave 2 posts 72 karma points
    Mar 22, 2023 @ 12:40
    Daxesh Dave
    0

    Hi @Dennis Thank you for the quick reply, But Our client don't want to use any third party package and This tool does not handle 404 requests and URL tracking URLs both.

    Invalid URLs always redirect to url from one of the URL tracking request.

    Is there any other solution, we can provide here?

Please Sign in or register to post replies

Write your reply to:

Draft