I just transfered my magento installation from one local machine server to another. Now, I cannot login to admin panel. When I go to the admin login url, I get the following error message:-
“Error: 404 Not Found”
Some of my module’s pages also show this error.
Can anyone please figure out the problem?
Finally, I found the solution to my problem.
I looked into the Magento system log file (var/log/system.log). There I saw the exact error.
The error is as below:-
Actually, I had this error before. But, error display message like
Error: 404 Not Foundwas new to me.The reason for this error is that
store_idandwebsite_idfor admin should be set to 0 (zero). But, when you import database to new server, somehow these values are not set to 0.Open PhpMyAdmin and run the following query in your database:-
I have written about this problem and solution over here:-
Magento: Solution to “Error: 404 Not Found” in Admin Login Page