In this lesson we are going to learn how to change admin url in Magento 2. Changing Admin URL in Magento 2 is as simple as changing URL in Magento 1 so you don’t need to worry about it -: Step 1 : Go to your Magento installation directory and open /app/etc/env.php file
'backend' => array ( 'frontName' => ‘login-access’, //change the frontName here to change the Admin URL )Step 2: Clear the cache using the following command or by removing all files from var/cacherm -rf var/cache
That’s it, now you have the new Magento admin URL. So, we can access Admin panel now with this url http://localhost:1234/magento_demo/login-access/Hope this article helped you in some way. Please leave us your comment and let us know what do you think? Thanks.