Copied to clipboard

Flag this post as spam?

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


  • Aki 43 posts 214 karma points
    Mar 14, 2016 @ 12:46
    Aki
    0

    What is the proper way of making a 404 Controller in the new umbraco ? Have being looking for a while now and im a bit dense so help would be appriciated..

    Wnat i found so far is this but it does not make sence to me.. https://our.umbraco.org/wiki/how-tos/how-to-implement-your-own-404-handler

    im acculay not interested in having multiple sites but only one.

    the config is set but its does not seem to work..

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Mar 14, 2016 @ 12:51
    Dave Woestenborghs
    0

    Hi Aki,

    Can you share your configuration ?

    Dave

  • Aki 43 posts 214 karma points
    Mar 14, 2016 @ 13:07
    Aki
    0

    file Config/404handlers.config

      <?xml version="1.0" encoding="utf-8" ?>
        <NotFoundHandlers>
          <notFound assembly="umbraco" type="SearchForAlias" />
          <notFound assembly="umbraco" type="SearchForTemplate"/>
          <notFound assembly="umbraco" type="SearchForProfile"/>
          <notFound assembly="umbraco" type="handle404"/>'
          <notFound assembly="MYpageAssembley" namespace="web.Controllers" type="PageNotFoundHandler" />
        </NotFoundHandlers>
    
  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Mar 14, 2016 @ 13:10
    Dave Woestenborghs
    0

    Hi Aki,

    Normally you don't need to change this config file.

    But you need to set the id of the 404 page in the umbracoSettings.config file.

    But maybe this package can make your life easier : https://our.umbraco.org/projects/backoffice-extensions/umbraco-page-not-found-manager/

    Dave

  • Aki 43 posts 214 karma points
    Mar 14, 2016 @ 13:42
    Aki
    0

    Hi dave thanks..

    but im not keen on beeing reliant on a plugin .. the main reason is that the old page have some links that i want to be able to set up to new routes in the system on a controller that i can redirect to the new pages where the link is updated..

    the old page has some files that is not on the proper location..

    in my new implementation i want to define a list of elements in the back office with direct paths to the new content so that the page will not break ..

    for users that have links from old Pdf's that link to new new page..

    so by using the url as a referenc on the new page i know where to point them...

Please Sign in or register to post replies

Write your reply to:

Draft