magento Magento: How to get admin URL programmatically December 31, 2014 Code007 Leave a comment The backend (or admin) URL is configured in app/etc/local.xml. We need to parse that file. It is easier than I thought first. $adminURL = (string)Mage::getConfig()->getNode(“admin/routers/adminhtml/args”)->frontName; That’s all.