One thing i did is, i removed the local.xml file from app/etc directory and reinstall the magento. i tried many solution to resolve this issue.
#A 404 NOT FOUND ERROR WAS ENCOUNTERED WHILE TRYING TO USE AN ERRORDOCUMENT TO HANDLE THE REQUEST. CODE#
htaccess file: ErrorDocument error-number /Your-Error-file.html You may instead add the following to your. Note: If you already have error pages created, it is not necessary to follow this tutorial. the requested url was not found on this server and additionally a 404 not found error was encountered while trying to use an error document to handle the.