0

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
  • you have to check inside database, core_config_data tabel in check your store url. Also remove cache of your store. Commented May 1, 2017 at 8:41

1 Answer 1

0

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.

1
  • Glad it helped :)
    – Fodakty
    Commented May 1, 2017 at 11:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.