How to Change Admin URL in Magento
Given how frequent hacking and data breaches take place in E-commerce websites, it is a challenge for Magento store admin to secure the admin panel.
Previously, I had given the methods to change admin URL in Magento 2 stores.
However, it is a much-needed process for Magento stores comparatively. Hence, the methods to change admin URL in Magento!
The default Magento admin URL is quite predictable and prone to hackers’ attacks. Hence, securing your admin panel is utmost important.
Methods to Change Admin URL in Magento:
Implementing each method in detail,
-
Change Magento Admin URL via Admin panel
-
Change Magento Admin URL by editing local.xml file
- Open local.xml via app/code directory from the root directory of your store.
- Replace the code:
123456789<admin><routers><adminhtml><args><frontName><![CDATA[admin]]></frontName></args></adminhtml></routers></admin>
123456789<admin><routers><adminhtml><args><frontName><![CDATA[secure-admin]]></frontName></args></adminhtml></routers></admin>
After implementing any of the above methods, clear cache.
Change admin URL in Magento with any of the above methods to secure your store’s backend from the hackers.
If you have any doubts in the above methods, please use the Comments section below to mention them. I’d be happy to help.
I’d be very grateful if you help share this helpful post on social media to fellow developers!
Thanks!
Sanjay Jethva
Sanjay is the co-founder and CTO of Meetanshi with hands-on expertise with Magento since 2011. He specializes in complex development, integrations, extensions, and customizations. Sanjay is one the top 50 contributor to the Magento community and is recognized by Adobe.
His passion for Magento 2 and Shopify solutions has made him a trusted source for businesses seeking to optimize their online stores. He loves sharing technical solutions related to Magento 2 & Shopify.
2 Comments
Changing the Magento admin URL is among the top security tips!
Thanks for sharing both methods to perform it.
Indeed!
Thank you for the appreciation 🙂