Whenever I hit a non-existent page on a dev site, I only get Craft's native 404 page, not the one I have at
/craft/templates/404.html. The site has no routes. Any ideas why this might be?
- Make sure you are in production mode in the .env file:
- Make sure you have developer mode disabled in config/general.php file:
- Make sure you have a 404.twig file in templates/
- This is not necessary, but ff you have all of the above and it still does not work, you can try adding this line in the config/general.php file:
'errorTemplatePrefix' => "404.twig"
You can also always go directly to the template and see if it is working.