Steps: 1. Go to an incorrect domain, like kde.org/437893475 Expected: 1. Localised 404 page Actual: 1. English 404 page
Krita website fixes it like this: https://invent.kde.org/websites/krita-org/-/blob/master/static/.htaccess?ref_type=heads#L48
Yes, the downside of that approach is that the page is served as a HTTP 200 code, which won't help with bots. The more correct solution is something like the PHP 404 handler I wrote for docs.krita.org which is also now used by Kdenlive and others too I think.