This short article shows you the possible way to recover the corrupted SharePoint Website.
For some password or other reasons you get the 404 error for your SharePoint Website.
There are 2 possible way to recover without completely doing the reinstallation as I know.
1. Use the SharePoint Central Administration to delete the old application and create a new application (the website).
If you hit error when using the SharePoint Central Administration then proceed to the second way.
2. Use the SharePoint Products Configuration Wizard to remove the SharePoint existing Farm and create a new one.
I have 2 SharePoint VM one works using the first method but another one I have the use the second method. All these are because of the silly Windows Server password policy.