Question

I'm new with magento. I'm accidentally changed Use Custom Admin URL value into Yes and added a custom admin url (which is doesn't exist). Now everytime i tried to access my magento admin it always redirect to that custom admin url and gives error because that URL doesn't exist. I have tried to return it to No and click save but i always get webadmin-sit-ecomm.tbsgroup.co.id’s server IP address could not be found.

enter image description here I have also tried to change it from the core_config_data table but still the same. All I need to do is return Use Custom Admin URL value to No. Can Anyone please help? enter image description here

Was it helpful?

Solution

Magento will add more rows than we think. Try to delete custom admin rows and new custom url values. Remember to flush the Magento cache. Your admin will be back.

enter image description here

My Magento version is 2.3.1.

OTHER TIPS

Try to add as custom url , the full admin url you want :

UPDATE core_config_data SET value = 'Enter you admin url here' WHERE path = 'admin/url/custom';

Run

bin/magento cache:clean && bin/magento cache:flush
bin/magento indexer:reindex

Execute this command to revert to the default Admin URL

**

php bin/magento config:set admin/url/use_custom 0

** Execute this command to revert to the default Admin Path (set in the app/etc/env.php as described in the Method 2)

php bin/magento config:set admin/url/use_custom_path 0

Use one of the following methods to clear the Magento cache:

On the Admin sidebar, go to System > Tools > Cache Management. Then, click Flush Magento Cache. On the server, execute the following:

php bin/magento cache:flush

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