Question

I made a mistake. I changed the Admin Base URL and now I can't access the admin site.

In the core_config_data table,I edited the following rows in the database:

Scope:"Default" and Path:"admin/url/custom"

Select the NULL checkbox and save.

Scope:"Default" and Path:"admin/url/use_custom"

Change value from 1 to 0 and save.

I deleted the following rows:

Scope:"Stores" and Path:"web/secure/base_url" Scope:"Stores" and Path:"web/unsecure/base_url"

enter image description here

Was it helpful?

Solution

You need to insert again "web/secure/base_url" and "web/unsecure/base_url", it's your store frontend URL (not admin).

Don't forget to clear your cache from command line:

php bin/magento cache:clean php bin/magento cache:flush

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top