I've noticed as of version 2.4.2 there is another .htaccess file in /pub which is the .htaccess file that was originally root. Please check /pub/.htaccess too. The corresponding index.php is stored in /pub too.
If it's a fresh install of Magento then generally it's a server side issue. Check for missing php packages, check error log.