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.