Magento - How to change Admin URL Path?

By default, to access magento admin panel, the url will be something like "http://www.yoursite.com/admin". This setting should be changed to not to let any general user to access your admin panel.

It is advised to change admin url of any magento site to avoid any hacking issues. This can be done by changing the settings in your app/etc/local.xml file.

Search for the below code in your local.xml file.


<admin>
    <routers>
            <adminhtml>
                <args>
                    <frontName><![CDATA[admin]]></frontName>
                </args>
            </adminhtml>
        </routers>
</admin>

Change the name from "admin" to any desired name, here I am changing to "myadminurl"

<frontName><![CDATA[myadminurl]]></frontName>

Save your local.xml file and refresh your caches from System > Cache Management.

Thats it, now you can access your admin panel using the below URL:

http://www.yoursite.com/myadminurl.

1 comment: