I have changed the admin URL using the below command line:
php bin/magento setup:config:set --backend-frontname="admin_path"
I have followed the below answer for change the admin URL:
How to change magento2 admin url?
After that I have gone to check the admin URL stored correct or not in this file
app/etc/env.php
.
Also, I have run these commands after update the URL
php bin/magento setup:static-content:deploy
php bin/magento cache:c
php bin/magento cache:f
The URL has changed as expected but now I am getting 404 Not Found page when I go the updated admin URL.
Please suggest if anyone faced this issue in past.
Best Answer
Make sure that after you do the command:
You go to the Database and
and have the correct:
with your url. And of course doing the:
after.