404 page

Currently, when a user goes to a page that doesn't exist on our website they are just redirected back to the home page. I created a custom 404 page for users to be directed to but I'm having trouble figuring out how to direct users to that page when they try to go to a page that doesn't exist. I've looked in 'Sites & Settings' to set the Error Page but it looks like that is just for 500 or 501 errors. Any help would be greatly appreciated!

Comments

  • Hi Greg Vissing‍,


    I've noticed a peer has not answered your question yet and your issue seems to be technical. If you haven't opened a support ticket yet, I encourage you too.


    If you still have questions, please scroll to the bottom of this community page to click on customer support. 


    Please let me know if this is helpful or if you need something else!


    In harmony,

    Elizabeth

    Blackbaud Community Team
    https://community.blackbaud.com/community-managers


     
  • We are selt hosted and do this in the web.config at the root of the site.

    I'm not sure if that is an option for you, but here's how we do it


      <customErrors mode="RemoteOnly" defaultRedirect="/custom/500.html">

            <error statusCode="404" redirect="/custom/404.html" />

            <error statusCode="500" redirect="/custom/500.html" />

          </customErrors>