How to Change Admin URL in Magento

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:

  1. Via Admin Panel
  2. Manually by editing local.xml file

Implementing each method in detail,

  1. Change Magento Admin URL via Admin panel

    1. Log in to Admin Panel
    2. Navigate to System > Configuration > Advanced > Admin
    3. Expand Admin Base URL
    4. Set “Yes” to Use Custom Admin Path
    5. Enter your custom path in Custom Admin Path
    6. Save your configuration.How to Change Admin URL from the admin panel in Magento
  2. Change Magento Admin URL by editing local.xml file

    1. Open local.xml via app/code directory from the root directory of your store.
    2. Replace the code:
      with:
      where, /secure-admin is my custom URL path. Enter the value of your custom URL path here.

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!

5
(based on 8 Reviews)

Get Weekly Updates

Never miss Magento tips, tricks, tutorials, and news.

Thank you for subscribing.

Something went wrong.

Sanjay is a co-founder at Meetanshi. He is a Certified Magento Developer who loves creating Magento E-commerce solutions. Owing to his contributions in Magento Forums and posting solutions, he is among the top 50 contributors of the Magento community in 2019. When he is not engrossed with anything related to Magento, he loves to play cricket.

2 comments On How to Change Admin URL in Magento

Leave a reply:

Your email address will not be published.