In a Drupal 8.5.3 installation I have set up the following configuration:

  • I created a basic page, its node path is /node/42.
  • Under Administration » Configuration » System » Basic site settings (/admin/config/system/site-information) I have set the Default 404 (not found) page to /node/42.

Now I expect a non-sensical URL to show the contents of /node/42 for the 404 page. However, I still only get the generic 404 page.

The theme we are using does not have a custom 404 template or anything like that. What other reasons could there be, that the default 404 page is not the one set in the config?

  • did you try flushing the cache? Do you have another module handling 404 pages?
    – awm
    May 16, 2018 at 15:43
  • Yes, I executed drush cr. As far as I know there are no other modules handling 404 pages but I'll try to check if there could be one.
    – fritzmg
    May 17, 2018 at 11:35
  • I'm also facing the same kind of issue in D8 - Its a multi domain site.
    – Manikandan
    Mar 4, 2019 at 7:13

1 Answer 1


It was due to the multi-domain setup. I did not realize that you can/have to assign a different 404 page for each domain.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.