cancel
Showing results for 
Search instead for 
Did you mean: 

After changing shop domain admin is no longer available

SOLVED

After changing shop domain admin is no longer available

Hello,

Ive changed my store domain over the cli and it worked for my frontend pages.

But if I want visit the admin backend url I get redirected to localhost.

 

php bin/magento setup:store-config:set --base-url="http://mydomain.com/"
php bin/magento setup:store-config:set --base-url-secure="https://mydomain.com/"
php bin/magento cache:flush

But if i visit http://mydomain.com/admin I get redirected to http://localhost/admin/admin/

 

I am using Magento 2.1.9

How can I fix this?

1 REPLY

Re: After changing shop domain admin is no longer available

I have found a solution.

I changed web/unsecure/base_url and web/unsecure/base_url in core_config_data to default.

Now it works fine.