Magento: How to change admin URL

by admin on August 10, 2011

If you want to add a security layer between your Magento website and potential hackers, renaming the admin URL is a good idea. However, the Magento admin folder is a virtual folder, meaning it’s an internal redirect and there is no “real” folder that you can rename. Instead, here is what you need to do:

To rename admin path,

Go to /app/etc and  open the local.xml file.

Find the text ![CDATA[admin]] in the file (around line no.57). This is the default admin path.

Change admin name to some other name like mystore and save it.

So it will look like ![CDATA[mystore]] and admin url will be

Next, log in to your admin panel using the old URL (…/admin), which is still in your Magento cache.

Go to System > Cache Management and “Flush Magento Cache” (important!). This will clear the cache and give you an error message (401 – couldn’t find page). Don’t panic, just type in the new admin URL (…/mystore) and hit enter, it should take you straight back to the admin panel.

That’s it, you’re done. Good Luck!

{ 0 comments… add one now }

Leave a Comment


Previous post: