After performing a sudo apt update and sudo apt upgrade, some of my WordPress sites with internationalized domain names (IDNs) containing special characters (like “Ø”) started returning a “File not found” error when trying to access /wp-admin or any PHP files. This issue is specific to the IDN domains, while other domains without special characters continue to function normally.
I’ve confirmed that the problem is not related to any other domain, or is of another cause. The problem only affects the domains with special characters in their names.
I also tried adding a new subdomain of one of the IDN’s and made a fresh installation of WordPress, it also did not work. So the issue is 100% isolated to just IDN’s.
Google and ChatGPT is sadly not of much help this time…
A temporary fix I found is to delete the domain, and then add it back as punycode. It’s like if the folder is using special characters it doesn’t want to load its PHP files properly. It’d be nice to have a permanent fix though.