First and foremost never change your Admin URI directly from the 'env.php' page because that alone isn't sufficient to change/update the URI. Best is to use the terminal because along with the URI value in the 'env.php' file, you will also have to change/update the following database values:
1. Change Magento 2 Admin URI/URL FROM CLI/Terminal:
Example:
Note: Please do not use names such as 'admin' or your store name in the Admin URL.
1. Change Magento 2 Admin URI/URL FROM Store Back End:
Click on STORES > Configuraiton > Advanced > Admin. Please view image below for example:
- db-engine
- db-model
- db-init-statements
Click on image to enlarge |
php bin/magento setup:config:set --backend-frontname="your_admin_path"
Note: No forward slash at the front or back of your path admin path.Example:
php bin/magento setup:config:set --backend-frontname="vXc12eR_1991"
Note: Please do not use names such as 'admin' or your store name in the Admin URL.
1. Change Magento 2 Admin URI/URL FROM Store Back End:
Click on STORES > Configuraiton > Advanced > Admin. Please view image below for example:
No comments:
Post a Comment
Thank you for your Feedback!
www.evagabond.me