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?
Solved! Go to Solution.
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.