how to set a 404 Not Found error
404 Not Found error page setting
if you set a page for 404 for error ..it will help to search promotion .. GOOGLE and other search engine robots take time to crawl your pages ..if you are doing regular updations or change the files or file name..it will take time to search engine to found ...so in search our old pages showing 404 error
its very easy to set 404error
go to your .htaccess file - normally it will be in hosting directory
like Public_html - you can edit the file in file manager or you can download and open it in Notepad
Add this to the .htaccess file:
ErrorDocument 404 http://www.domain.com/404page.html if you don't any page you can directly redirect to your website ErrorDocument 404 http://www.domain.com/ |
if you don't found the .htaccess file you can create it in notepad- just open notepad and add the code
if you are using Notepad on Windows, you will need to enter
".htaccess"
(including the opening and closing quotation marks) into the "Save As" dialog box when you create the file, otherwise Notepad will append a ".txt" extension
or create a file f.htaccess and rename it after uploading - in file manager
If you're using a UNIX server there is a chance to not detected this code .. So add the permission also
chmod 644 .htaccess
f you're not running a UNIX machine, I believe the file is ready to go.. If still not working contact your server department