I have changed the URL of my site from DNS and I did the change on the admin for the new site but now it seems that I lost access, cant access the site or the admin panel, any ideas?
1 Answer
I did that many times :) if your new site is www.example.com then run the following commands from your root install directory of Magento, for instance, if its var/www/html/magento2 then go there and run
php bin/magento setup:store-config:set --base-url="http://www.example.com" php bin/magento setup:store-config:set --base-url-secure="https://www.example.com" php bin/magento cache:flush
and you should be set.