0

I successfully changed my store domain name and I was able to access my admin URL. Now when I changed my admin URL and getting 404 error. I followed these steps:

STORES → Configuration-Admin-ADVANCED-Admin Base URL-use custom url-yes and then entered my custom admin URL. Custom admin path is set to no while saving configuration.

On saving, the page went immediately to 404 error. Now I'm unable to access my admin URL.

Even after cache clear and flush, I'm still unable to access admin URL. I tried to edit env.php but still no luck.

Any other steps to get back to the admin url. Should I try editing db from phpmyadmin?

Magento ver: 2.2

  • you can delete custom url entry from phpmyadmin to get back the previous url – Jigs Parmar Aug 7 at 11:13
  • I deleted custom url entry but still getting 404 error. – Fast Source Aug 7 at 11:48
  • please clear the cache and check – Jigs Parmar Aug 7 at 12:09
  • you can also run the command php bin/magento info:adminuri to get admin url – Jigs Parmar Aug 7 at 12:10
  • I have cleared the cache and the info:adminuri returns the url. But still getting 404 – Fast Source Aug 7 at 12:49

Your Answer

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

Browse other questions tagged or ask your own question.