Difficulty: Easy
Modification: Config files, Database
Q:
Ok so I went to SYSTEM | ADVANCE and changed the path to log into the admin panel to another name.
Now, I can’t log in to the admin panel.
A:
First of all you would need to undo what you did – unset the custom admin url in the database. To do this, you would need to interact with the database. My preference is to use phpmyadmin, but you might also do it with the command line interface. Go to the table ‘core_config_data’ and delete the rows:
- admin/url/use_custom
- admin/url/custom
After that you need to properly set your custom admin url in the config file /app/etc/local.xml. In this file change this:
<frontName><![CDATA[admin]]></frontName>
to this:
<frontName><![CDATA[your_custom_admin_url]]></frontName>
Now save the file and clear the cache (if you are using it). If you still don’t have access to the admin you may clear the cache by deleting the contentss of the /var/cache directory.
On thing to remember is that while hiding your admin url makes your site more secure, it is not the ultimate solution for all your security issues. If your magento version is lower than 1.4, your admin url is easily discoverable by anyone unless you do some additional tweaking.






Hi, I tried to follow step by step the instructions below and still can’t get to the admin login page. When you say to write this , do you mean the Whole URL or just the folder? With or without slash? Slash before or after?
If your current shop url is http://www.yourshop.com then the standard admin url is http://www.yourshop.com/admin. If you want to change this to http://www.yourshop.com/mymagentoadmin you need to put this line in the /app/etc/local.xml file:
<frontName>< ![CDATA[mymagentoadmin]]></frontName>