I'm trying to set a custom 404 page but is not working. What I tried:
- configuration - system - basic site settings and set node path on 404 page -> didn't work
- add page--404.html.twig to my custom theme -> didn't work
- in my custom-theme.theme added _theme_suggestions_page_alter function -> didn't work
Always show default 404 page, not my custom page. I clear cache on every attempt. Is there something I am missing?
Thanks in advance
Edited
Tried on local and cloud acquia server
I check with another websites that I build and all of them give me this 404 page (default)
But with this specific website I get this 404 page
It seems this website 404 error is handle by browser and not by drupal 8(?)
Edited 2
Another thing I notice is when I type a wrong URL appear on "log messages"
But on current website (the one I can't set custom 404) I don't have any error on "log messages".
Is there any code/config to enable/disable this?
Maybe this is same problem?
devportal.dd
can't be mapped to an IP address (hostname unresolved) so the browser gives you 404. This has nothing to do with Drupal being able to find a page. Looks like your server isn't configured properly.