Bug 495500

Summary: 404 error page is always in English
Product: [Websites] www.kde.org Reporter: Emir SARI <emir_sari>
Component: generalAssignee: kde-www mailing-list <kde-www>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Emir SARI 2024-10-28 18:53:14 UTC
Steps:
1. Go to an incorrect domain, like kde.org/437893475

Expected:
1. Localised 404 page

Actual:
1. English 404 page
Comment 1 Emir SARI 2025-02-01 19:05:29 UTC
Krita website fixes it like this: https://invent.kde.org/websites/krita-org/-/blob/master/static/.htaccess?ref_type=heads#L48
Comment 2 Ben Cooksley 2025-02-01 19:08:30 UTC
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.