0

I want to change the admin URL by using custom admin URL and path

3 Answers 3

2
  • Go to Stores -> Configuration -> Advanced -> Admin -> Admin Base URL.
  • Uncheck the "Use System value" for "Use Custom admin path".
  • Select "Yes" in "Use Custom admin path".
  • A new field should appear called "Custom Admin Path". Fill in the value you need here. For example: if you put in new_admin, you will be able to login in the admin at the URL http://www.example.com/new_admin.
1
  • It worked, but if I want to add a Custom URL then what I have to do? Commented May 24, 2017 at 15:29
0

According to Magento DevDocs

In Magento installation folder run this commande line :

php bin/magento setup:config:set --backend-frontname="THE_NEW_ADMIN_KEY"

And then check with :

php bin/magento info:adminuri

1
  • I know that but I want to do it from the Admin Panel. Commented May 24, 2017 at 15:27
0

Quick answer (Using Magento 2 Admin settings):

  1. Log in the Magento 2 Admin interface
  2. Click Stores
  3. Click Configurations
  4. In the panel on the left, under Advanced, click Admin and expand the Admin Base URL section Set Use Custom Admin Path to “Yes”.
  5. Enter the Custom Admin Path. The path that you enter is appended to the
  6. Custom Admin URL after the last forward slash. For example: testadmin
  7. You will be logged out and redirected to the new Admin URL

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.