Thursday, September 1, 2011

404 File Not Found Error resolution

How to resolve the problem

With In a Microsoft IIS environment normally right-click on the appropriate Web service icon in the IIS Management Console and select Properties. Select Custom Errors then select the 404 error, and then select Edit Properties. In the Message Type list select Edit URL being careful (!) to specify the error recovery page URL.


In a UNIX/Linux (Apache) environment you would modify the .htaccess file to include the command(s):

ErrorDocument 404 /404.htm
ErrorDocument 403 /404.htm
ErrorDocument 401 /buynowpage.htm
----- Error codes appear below