In magento 1, To change the admin url we directly change in the local.xml file.
Now you are thinking what will be do in Magento 2. Don’t worry it is easy same as Magento 1. But File is different to change the admin url.
To change the url open the file env.php in the path app/etc.
Change the code
1 2 3 |
array ( 'frontName' => 'admin', // Default name which we was given at the time of installation. ), |
We can change the front name and save the file. Then clear the cache from var/cache folder.
Now login at admin side with new Admin Url
Enjoy the New Admin Url 🙂
Thanks for sharing. It helped me
Its our pleasure Pritesh.
Keeps sharing and commenting on posts.