I change my admin URL to a custom URL and I cannot access my store admin anymore.
How can I revert the change that I made?
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
Go to your database and find the table
Find the path column
Then edit the value column of those rows. Remember to use
/ at the ending of the URLs or it won't work.
You need to run below query in database:
UPDATE core_config_data SET value = 0 WHERE path = 'admin/url/use_custom'; UPDATE core_config_data SET value = 'http://127.0.0.1/m2/admin/' WHERE path = 'admin/url/custom'; UPDATE core_config_data SET value = 'http://127.0.0.1/m2/' WHERE path = 'web/secure/base_url'; UPDATE core_config_data SET value = 'http://127.0.0.1/m2/' WHERE path = 'web/unsecure/base_url';
Note: change you admin and front URL in query