This problem is killing me!
For example, if I enter my site by using this link: http://www.example.com/index.php
it works just fine. But when using the domain name only (http://www.example.com) without the page name and extension, it gives me the "HTTP Error 404 - File or directory not found."