404 file not found syntax

404 file not found syntax

404 file not found syntax

404 file not found syntax

ErrorDocument 404 /index.html
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

 

save fileĀ  .htaccess

 

upload on cpanel — file manager – public_html – upload