Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can not load admin url in magento 2?

Tags:

magento2

I have installed magento 2 with sample data using command line instructions. I can load the frontend without any problem.

When I load admin url, its getting redirected. Actual admin url: local.magento_2.com/admin_1kzjqv/, redirected url: http://local.magento_2.com/admin_1kzjqv/http:/index/local.magento_2.com/admin_1kzjqv/admin/index/index/key/dc29e0deb12bceefaf5d6b01551063e15e66b94a638e3915bf190b9d5d79743f/.

Please help me.

like image 296
Karthickeyan Avatar asked Sep 15 '25 08:09

Karthickeyan


2 Answers

clear cache, reindex data in your magento

php bin/magento cache:flush
php bin/magento indexer:reindex

like image 66
Vinoth kumar Avatar answered Sep 18 '25 10:09

Vinoth kumar


I have found the solution. its an url problem. wrong format: http://local.magento_2.com/, correct format: local.magentosample.com. url doesn't save in the correct format in db. so i have changed and it worked fine. thank you guys helping..

like image 25
Karthickeyan Avatar answered Sep 18 '25 09:09

Karthickeyan