My index.php is returning a 404 all of a sudden after having worked just fine (and being left untouched) for months.
404 HTTP status means file not found but the file exists just fine. If I replace it with a standard index.php with echo 'test'; it works just fine too. The robots.txt file works fine so my server, DNS etc. is all definitely 100% OK.
I tried logging in to the admin area but keep getting username & password incorrect. So I went in to the database via phpMyAdmin and changed them to something new and stilll can't get it.
Next thing I tried is restoring the database from yesterday's back-up (log files showing website responded just fine 24 hours ago). This still didn't work. But if I edit config.php to the database credentials of another website on the same server running the same version of CMSMS it works again. So the files aren't corrupt either.
Quite a mystery all...
To sum up:
DNS/Server etc. defo 100% OK.
Files OK because hooking it up with another CMSMS DB works fine.
Files OK because I checked them with Beyond COmpare with a working website on same server.
Known working database restored but still no joy.
I'm waiting for my host to retrieve the file backup just in case but it all seems to indicate that won't help either.
So I'm at the end of my admin ideas!
What can possible cause a sudden death of this little site?
The only way I know sites die all of a sudden is when the disk is full so temp files can't be written etc. Or when the database is down etc. None of that in this case. I haven't touched the files (verified this by checking the timestamps) and haven't even logged in in ages. No signs of being hacked either when looking at the access and error logs.
What can possibly cause index.php to show a 404 rather than a PHP or MySQL error?
Considering I keep getting user/pass incorrect even when resetting them in phpMyAdmin, what can possibly be wrong with the files that handle the database stuff?
Having exhausted my checklists I was hoping someone can come up with aeither a brilliant idea or a simple suiggestion that makes me go red and feel ashamed for days
Joe

