The magento admin URL is the URL you use in your web browser to access the backend or admin panel of your Magento store. This is the information hub for your Magento store – where you can view, edit and manage everything from order data, customers, to settings for your checkout, and extensions

Changing your admin URL is one small step in the bigger picture of security. Changing your default Magento admin URL is a relatively easy thing you can do to increase the security of your Magento site and make it a little bit more difficult for bots or hackers to find your admin URL to attack it.

 

Before Making Changes…

Be sure to have a Magento developer on standby, if you change your default admin URL and then can’t access your admin panel, you may need a developer to make changes to the database or site files to fix the issue.

To follow sound development practices, and to protect from your live site going down, it is best to make these edits on a development environment first. We would also recommend contacting your hosting provider to make sure they don’t have firewalls that wouldn’t allow the changing of your Magento admin URL.

The easiest method that requires no coding, is to make changes in the Admin panel settings.

  • Log into your Magento Admin
  • Go to Stores > Configuration
  •  IN the Magento 2 Backend Navigate to Configuration 
  • In the “Advanced” section – click on Admin
  •  Expand “Admin Base URL”
  •  On the configuration page select admin from the menu 
  • Expand the “Admin URL” section by clicking on the arrow with the circle around it
  • Notes: When entering your new admin URL, be sure to keep the same root as the storefront, adding onto your normal site URL
  • Set the “Custom admin URL” to Yes – you may have to uncheck the “use system value” to be able to change this setting
  • In “Custom Admin URL” set your URL. Make sure that base URL ends with ‘/’ (slash), e.g. http://yourdomain/magento/
  • In “Custom Admin Path” add your new path that will be added after the “/” slash in your URL above.
  • Set “Use Custom Admin Path” to Yes
  •  Set the new admin URL path 
  • Be sure to click Save Config to save your changes.