Bug 495500 - 404 error page is always in English
Summary: 404 error page is always in English
Status: REPORTED
Alias: None
Product: www.kde.org
Classification: Websites
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: kde-www mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-28 18:53 UTC by Emir SARI
Modified: 2025-02-01 19:08 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.