.htaccess 404 to index.html code example Example: redirect 404 to index htaccess ErrorDocument 404 /index.php