{"id":531,"date":"2019-07-31T09:59:43","date_gmt":"2019-07-31T09:59:43","guid":{"rendered":"https:\/\/meetanshi.com\/blog\/2019\/07\/31\/change-admin-url-in-magento\/"},"modified":"2025-05-22T16:13:20","modified_gmt":"2025-05-22T10:43:20","slug":"change-admin-url-in-magento","status":"publish","type":"post","link":"https:\/\/meetanshi.com\/blog\/change-admin-url-in-magento\/","title":{"rendered":"How to Change Admin URL in Magento"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Given how frequent hacking and data breaches take place in E-commerce websites, it is a challenge for Magento store admin to secure the admin panel.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Previously, I had given the methods to&nbsp;<a href=\"https:\/\/meetanshi.com\/blog\/change-admin-url-in-magento-2\/\" target=\"_blank\" rel=\"noreferrer noopener\">change admin URL in Magento 2<\/a>&nbsp;stores.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">However, it is a much-needed process for Magento stores comparatively. Hence, the methods to&nbsp;<em><strong>change admin URL in Magento<\/strong><\/em>!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The default Magento admin URL is quite predictable and prone to hackers\u2019&nbsp;attacks. Hence, securing your admin panel is utmost important.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Methods to Change Admin URL in Magento:<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Via Admin Panel<\/li>\n\n\n\n<li>Manually by editing local.xml file<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Implementing each method in detail,<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. Change Magento Admin URL via Admin panel<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Log in<\/strong>&nbsp;to Admin Panel<\/li>\n\n\n\n<li>Navigate to&nbsp;<strong>System &gt; Configuration &gt; Advanced &gt; Admin<\/strong><\/li>\n\n\n\n<li>Expand&nbsp;<strong>Admin Base URL<\/strong><\/li>\n\n\n\n<li>Set \u201cYes\u201d to&nbsp;<strong>Use Custom Admin Path<\/strong><\/li>\n\n\n\n<li>Enter your custom path in&nbsp;<strong>Custom Admin Path<\/strong><\/li>\n\n\n\n<li><strong>Save&nbsp;<\/strong>your configuration.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2019\/07\/1_Change-from-Admin-Panel.png\" alt=\"How to Change Admin URL from the admin panel in Magento\" class=\"wp-image-6143\"\/><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\">2. Change Magento Admin URL by editing local.xml file<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open&nbsp;<em><strong>local.xml<\/strong><\/em>&nbsp;via app\/code directory from the root directory of your store.<\/li>\n\n\n\n<li>Replace the code:<\/li>\n<\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;admin>\n    &lt;routers>\n        &lt;adminhtml>\n            &lt;args>\n                &lt;frontName>&lt;![CDATA[admin]]>&lt;\/frontName>\n            &lt;\/args>\n        &lt;\/adminhtml>\n    &lt;\/routers>\n&lt;\/admin><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">with:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;admin>\n    &lt;routers>\n        &lt;adminhtml>\n            &lt;args>\n                &lt;frontName>&lt;![CDATA[secure-admin]]>&lt;\/frontName>\n            &lt;\/args>\n        &lt;\/adminhtml>\n    &lt;\/routers>\n&lt;\/admin><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">where,&nbsp;<em>\/secure-admin<\/em>&nbsp;is my custom URL path. Enter the value of your custom URL path here.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After implementing any of the above methods, clear cache.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em><strong>Change admin URL in Magento<\/strong><\/em>&nbsp;with any of the above methods to secure your store\u2019s backend from the hackers.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I\u2019d be very grateful if you help share this helpful post on social media to fellow developers!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thanks!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Given how frequent hacking and data breaches take place in E-commerce websites, it is a challenge for Magento store admin to secure the admin panel&#8230;.<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[34],"tags":[],"class_list":["post-531","post","type-post","status-publish","format-standard","hentry","category-magento"],"acf":[],"_links":{"self":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/531","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/comments?post=531"}],"version-history":[{"count":3,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/531\/revisions"}],"predecessor-version":[{"id":15323,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/531\/revisions\/15323"}],"wp:attachment":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/media?parent=531"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/categories?post=531"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/tags?post=531"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}