Magento – Magento 1.9 admin and frontend always shows 404 not found

404-pageadminmagento-1.9

Magento 1.9 admin and frontend always shows 404 not found

404 not found randomly shows when I'm on admin or on frontend but when I refreshed that certain 404 page it will work fine.

I tried reverting the .htaccess to its original code but it still exist. Tried also disabling/removing some extensions but no luck.

enter image description here

Thank you.

Best Answer

Try these steps:

  1. Check if you are accessing the correct admin url (see admin...frontName node in app/etc/local.xml file)

  2. Try to run the sql below:

SET SQL_SAFE_UPDATES=0;
SET FOREIGN_KEY_CHECKS=0;
UPDATE `core_store` SET store_id = 0 WHERE code='admin';
UPDATE `core_store_group` SET group_id = 0 WHERE name='Default';
UPDATE `core_website` SET website_id = 0 WHERE code='admin';
UPDATE `customer_group` SET customer_group_id = 0 WHERE customer_group_code='NOT LOGGED IN';
SET FOREIGN_KEY_CHECKS=1;
SET SQL_SAFE_UPDATES=1;
Related Topic