Disable Custom Admin URL
-
11-05-2021 - |
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.
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?
Autres conseils
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