I'm reinstall server on Ubuntu 20.04 with control panel "Hestia" with php-fpm support. But i have 404 error in front page domain.com/ if i use in .htaccess:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(en/|ua/|) $1404.php [L]
All others pages and front page if i add /index ( domain.com/index ) works fine. If I comment this rules - all works and front page too, but i not have my 404 page.
Please help convert my .htaccess to php-fpm friendly. What do I need to do?