1

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?

  • How did you change the admin URL, i.e. from admin panel or from the database or using app/etc/env.php file? – Mohit Kumar Arora Oct 16 '18 at 5:12
0

Try this:

In admin panel go to Stores > Configuration

In Configuration Go to Advanced > Admin > Admin Base URL. In this section you can change your admin URL. (Refer Below Screenshot)

enter image description here

After changing the URL don't forget to flush the Magento cache.

0

Try this:

Go to your database and find the table core_config_data

Find the path column web/unsecure/base_url and web/secure/base_url

Then edit the value column of those rows. Remember to use / at the ending of the URLs or it won't work.

0

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';

Remove var folder

Note: change you admin and front URL in query

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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