Error in Admin URL: Causes & Solutions
What is a 404 Error? 404 Error on a website means that the web page you were searching for was not found. Generally, its because of 2 reasons like:
1 Entered a
wrong URL
2 Web page has been removed
In technical terms the 404 or Not Found error is an HTTP standard response code showing that the client was able to interact with a distributed server, but the server could not locate what the requested resource.
1
Causes with Solutions
Database Inconsistencies Cause
Solution
The values of store_id and website_id should be zero for admin in a Magento database.
You have to reset the value of store_id and website_id to zero for admin in the Magento database.
But, these values can vary when store owners transfer the database to the new server, and users may face the 404 errors in Magento admin login page.
To reset website_id to 0 in the core_website table, follow below command, UPDATE 'core_website' SET website_id =0 WHERE code='admin';
Note: Before updating Magento Database, take backup of it for security.
2
Causes with Solutions
Corrupted .htaccess File Cause
• The .htaccess file in Magento website includes rewrite rules so website and links work perfectly. • But, if the file got deleted or altered by the owners mistakenly then the rules will not work and can generate 404 errors in Magento admin login page.
First of all, rename your file and check error is gone or not • If issues are still noted, then correct the misconfiguration in the .htaccess file. Solution • And, if .htaccess file is missing, create a new .htaccess file f and upload it to the root folder.
Solution : Check and fix the Magento admin URL in the below fields of the core_config_data table: admin/url/use_custom admin/url/custom web/secure/base_url • web/unsecure/base_url
Cause : • The default Magento admin URL: htp://website.com/magento/admin • But, store owners can modify it. • But if you custom the admin URL without setng the custom_admin_url setngs properly, then you face the 404 error.
Admin URL Customization
3
Causes with Solutions
4
Causes with Solutions
Magento Cache Cause
If you skip clearing the cache after performing security patches, installing or upgrading an extension, then Magento admin panel shows previous data.
Solution
Clear the Magento cache using below the command line php bin/magento cache:clean rm -rf var/cache/* rm -rf var/generation/*
5
Causes with Solutions
mod_rewrite Disabled Cause Sometimes during fresh Magento installation, the hosting server doesn’t support mod_rewrite module, and it generated a 404 error.
Solution Check web server configuration file to verify that the mod_rewrite module is enabled on the server. If it’s not enabled, then enable it and restart the web server.
Conclusion
Here We have discussed the top 5 reasons like a Database issue, Cache issue etc. for 404 error in a Magento admin URL with the proper solutions. But if you feel that any solution is hard or it may damage your website or its data, then you can contact any Magento Web Development Services providers and ask them for the help. Share, and like our presentation! And you can suggest or ask us in comments.
Contact Us
Europe Office Via San Felice 4340122 BolognaItaly. Europemailinfo@aegissofttech.com
India Office "Royal Square�, 1st Floor, Off No. 110, Nr. Shilp Tower, Tagore Road, Rajkot - 360 001, Gujarat Indiamailhs@aegissofttech.com
w
m o c . h c e t ft o s s i g e a . ww