ErrorDocument 404 /index.html # php -- BEGIN cPanel-generated handler, do not edit # Set the “ea-php80” package as the default “PHP” programming language. AddHandler application/x-httpd-ea-php80 .php .php8 .phtml # php -- END cPanel-generated handler, do not edit # Redirect 404 errors to homepage ErrorDocument 404 /404.html RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^.*$ / [R=301,L]