# How to properly change the Magento admin panel URL

> Change your Magento admin panel URL to a custom path to protect your store from brute force attacks.

Source: https://www.kualo.com/knowledgebase/magento-getting-started/how-to-properly-change-the-magento-admin-panel-url
Updated: 2026-06-09

---

Changing the default Magento admin URL is one of the simplest ways to protect your store from brute force attacks and automated login attempts. This guide walks you through editing the `local.xml` configuration file to set a custom admin path.

:::info
This guide applies to Magento 1.x. The `local.xml` file and `frontName` setting described below are specific to that version.
:::

## Before you start

In this example, the Magento store is at `http://mymagento.com` and the current admin URL is `http://mymagento.com/index.php/admin/`. The goal is to change it to something like `http://mymagento.com/index.php/SecureAdmin99/`.

Choose a custom path that is hard to guess - avoid obvious strings like `backend`, `myadmin`, or `store-admin`.

## Step 1 - open the file manager in cPanel

[Log in to cPanel](/knowledgebase/cpanel-how-tos/how-to-login-to-cpanel), then open **File Manager** and navigate to the document root folder of your Magento installation.

![File Manager showing the Magento document root](https://kb-cdn.kualo.com/a6/2f/a62f8ae599e73eadd2db848c5d34ddf0d9500544.gif)

## Step 2 - back up local.xml

Inside the document root, open the **app** folder, then the **etc** folder. Before making any changes, download a backup of `local.xml` to your computer: click the file, then select **Download**.

![Downloading local.xml from cPanel File Manager](https://kb-cdn.kualo.com/c8/94/c894472bed4738d5e973e82fd2dae036112b45eb.png)

## Step 3 - open local.xml in the code editor

With your backup saved, click `local.xml` again and select **Code Editor**, then **Edit**.

![Opening local.xml in the cPanel code editor](https://kb-cdn.kualo.com/d6/2e/d62e9ad56578e518f4316720eafc07db802ef6d9.gif)

## Step 4 - find the frontName setting

Locate the following line (around line 61):

```xml
<frontName><![CDATA[admin]]></frontName>
```

## Step 5 - change the admin path

Replace `admin` with your chosen custom string:

```xml
<frontName><![CDATA[SecureAdmin99]]></frontName>
```

Use a unique, hard-to-guess value rather than the example above. Save the file when done.

![local.xml updated with the new admin path](https://kb-cdn.kualo.com/a7/d4/a7d4d09604abe08c65d78f52997ae41de7e4e8f8.gif)

## Step 6 - flush the Magento cache

Log in to your Magento admin panel using the old URL while it still works, then go to **System > Cache Management** and click **Flush Magento Cache**.

![Magento Cache Management screen](https://kb-cdn.kualo.com/78/a6/78a694adb01c54ef31fc9c86b6dd3852e179747a.png)

## Step 7 - verify the new URL

You can now access your Magento admin panel at the new URL. The old `/admin/` path will no longer work.

:::tip
Make a note of your new admin URL and store it somewhere secure. If you forget it, you can always check or update the `frontName` value in `local.xml` again.
:::

If you have any questions, open a support ticket from within your Kualo client area.

---

_Source: Kualo Knowledgebase — https://www.kualo.com/knowledgebase/magento-getting-started/how-to-properly-change-the-magento-admin-panel-url · © Kualo Ltd._
