Karthickeyan
Karthickeyan

Reputation: 489

Can not load admin url in magento 2?

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.

Upvotes: 4

Views: 4162

Answers (3)

neeraj sharma
neeraj sharma

Reputation: 129

I replace this at line 138 and it worked!

$realPath = str_replace('\\', '/',$this->fileDriver->getRealPath($path));

Upvotes: -1

Vinoth kumar
Vinoth kumar

Reputation: 475

clear cache, reindex data in your magento

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

Upvotes: 3

Karthickeyan
Karthickeyan

Reputation: 489

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..

Upvotes: 2

Related Questions