{"id":2775,"date":"2026-10-06T17:45:55","date_gmt":"2026-10-06T12:15:55","guid":{"rendered":"https:\/\/ehostpiya.in\/blog\/?p=2775"},"modified":"2026-10-06T17:45:58","modified_gmt":"2026-10-06T12:15:58","slug":"how-to-change-the-magento-admin-url-2","status":"publish","type":"post","link":"https:\/\/ehostpiya.in\/blog\/how-to-change-the-magento-admin-url-2\/","title":{"rendered":"How to Change the Magento Admin URL?"},"content":{"rendered":"\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_88 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-change-the-magento-admin-url-2\/#How_to_Change_the_Magento_Admin_URL\" >How to Change the Magento Admin URL<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-change-the-magento-admin-url-2\/#Why_Change_the_Magento_Admin_URL\" >Why Change the Magento Admin URL?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-change-the-magento-admin-url-2\/#Before_Changing_the_Admin_URL\" >Before Changing the Admin URL<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-change-the-magento-admin-url-2\/#Method_1_Change_the_Admin_URL_from_envphp\" >Method 1: Change the Admin URL from env.php<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-change-the-magento-admin-url-2\/#Method_2_Change_the_Admin_URL_Using_Magento_CLI\" >Method 2: Change the Admin URL Using Magento CLI<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-change-the-magento-admin-url-2\/#Method_3_Change_the_Admin_URL_During_Magento_Installation\" >Method 3: Change the Admin URL During Magento Installation<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-change-the-magento-admin-url-2\/#How_to_Find_the_Current_Magento_Admin_URL\" >How to Find the Current Magento Admin URL<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-change-the-magento-admin-url-2\/#Clear_Magento_Cache\" >Clear Magento Cache<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-change-the-magento-admin-url-2\/#Test_the_New_Admin_URL\" >Test the New Admin URL<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-change-the-magento-admin-url-2\/#What_If_You_Cant_Access_the_Admin_Panel\" >What If You Can&#8217;t Access the Admin Panel?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-change-the-magento-admin-url-2\/#Common_Problems_After_Changing_the_Admin_URL\" >Common Problems After Changing the Admin URL<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-change-the-magento-admin-url-2\/#1_The_Old_URL_Still_Works\" >1. The Old URL Still Works<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-change-the-magento-admin-url-2\/#2_404_Error_at_the_New_URL\" >2. 404 Error at the New URL<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-change-the-magento-admin-url-2\/#3_Admin_Login_Redirects_Back_to_the_Old_URL\" >3. Admin Login Redirects Back to the Old URL<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-change-the-magento-admin-url-2\/#4_Admin_Assets_Do_Not_Load\" >4. Admin Assets Do Not Load<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-change-the-magento-admin-url-2\/#Best_Practices_for_Magento_Admin_Security\" >Best Practices for Magento Admin Security<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-change-the-magento-admin-url-2\/#Enable_Two-Factor_Authentication\" >Enable Two-Factor Authentication<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-change-the-magento-admin-url-2\/#Use_Strong_Passwords\" >Use Strong Passwords<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-change-the-magento-admin-url-2\/#Restrict_Admin_Permissions\" >Restrict Admin Permissions<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-20\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-change-the-magento-admin-url-2\/#Use_HTTPS\" >Use HTTPS<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-21\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-change-the-magento-admin-url-2\/#Use_a_Firewall_or_WAF\" >Use a Firewall or WAF<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-22\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-change-the-magento-admin-url-2\/#Monitor_Login_Attempts\" >Monitor Login Attempts<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-23\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-change-the-magento-admin-url-2\/#Important_Security_Note\" >Important Security Note<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-24\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-change-the-magento-admin-url-2\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_Change_the_Magento_Admin_URL\"><\/span>How to Change the Magento Admin URL<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">Changing the Magento Admin URL is a useful security measure that can reduce exposure to automated login attempts and unwanted scanning. Instead of using a predictable administrator path, you can configure Magento with a custom Admin URL.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">However, changing the Admin URL should be considered an <strong>additional security layer<\/strong>, not a replacement for strong passwords, two-factor authentication, a firewall, or other security controls.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Why_Change_the_Magento_Admin_URL\"><\/span>Why Change the Magento Admin URL?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A default or predictable Admin URL can be easily discovered by automated bots. Changing it can reduce:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Automated brute-force attempts<\/li>\n\n\n\n<li>Admin login scanning<\/li>\n\n\n\n<li>Unnecessary bot traffic<\/li>\n\n\n\n<li>Exposure of the administrator login page<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">For example, instead of:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;example.com\/admin<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">you could use:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;example.com\/store-control<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Choose a path that is difficult to guess and avoid using obvious words such as <code>admin<\/code>, <code>administrator<\/code>, or <code>backend<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Before_Changing_the_Admin_URL\"><\/span>Before Changing the Admin URL<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Create a backup before modifying Magento configuration.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It is also a good idea to have:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>SSH access to the server<\/li>\n\n\n\n<li>Access to the Magento filesystem<\/li>\n\n\n\n<li>Access to the Magento CLI<\/li>\n\n\n\n<li>A working database backup<\/li>\n\n\n\n<li>A record of the current Admin URL<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">If you are using a deployment system, make sure the configuration change is applied consistently across your environments.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Method_1_Change_the_Admin_URL_from_envphp\"><\/span>Method 1: Change the Admin URL from <code>env.php<\/code><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Magento stores the Admin URI configuration in:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>app\/etc\/env.php<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Before editing the file, make a backup:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cp app\/etc\/env.php app\/etc\/env.php.bak<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Open the file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano app\/etc\/env.php<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Look for the <code>backend<\/code> section:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>'backend' =&gt; &#91;\n    'frontName' =&gt; 'admin'\n],<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Change <code>admin<\/code> to your desired custom path:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>'backend' =&gt; &#91;\n    'frontName' =&gt; 'store-control'\n],<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Save the file.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Your Admin URL will now become:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;example.com\/store-control<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Use your actual domain name in place of <code>example.com<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Method_2_Change_the_Admin_URL_Using_Magento_CLI\"><\/span>Method 2: Change the Admin URL Using Magento CLI<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Magento provides a CLI command that can be used to configure the Admin URI.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">From the Magento root directory, run:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php bin\/magento setup:config:set --backend-frontname=\"store-control\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Replace <code>store-control<\/code> with your desired Admin path.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After making the change, clear the cache:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php bin\/magento cache:flush<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Then open the new Admin URL:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;example.com\/store-control<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Method_3_Change_the_Admin_URL_During_Magento_Installation\"><\/span>Method 3: Change the Admin URL During Magento Installation<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If you are installing Magento for the first time, you can specify the Admin URI during installation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>bin\/magento setup:install \\\n--backend-frontname=\"store-control\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The exact installation command will contain many other required options, but <code>--backend-frontname<\/code> determines the Admin URL path.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_Find_the_Current_Magento_Admin_URL\"><\/span>How to Find the Current Magento Admin URL<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If you don&#8217;t remember your current Admin URL, inspect:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>app\/etc\/env.php<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Look for:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>'backend' =&gt; &#91;\n    'frontName' =&gt; 'admin'\n],<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The value of <code>frontName<\/code> is the configured Admin path.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can also inspect the configuration with Magento CLI:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php bin\/magento info:adminuri<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Magento should return information similar to:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Admin URI: \/store-control\/<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Clear_Magento_Cache\"><\/span>Clear Magento Cache<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">After changing the Admin URL, flush the Magento cache:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php bin\/magento cache:flush<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If you are using additional caching layers such as Varnish or a CDN, clear or refresh those caches if necessary.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Test_the_New_Admin_URL\"><\/span>Test the New Admin URL<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Open the new URL in your browser:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;example.com\/store-control<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Verify that:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The login page loads.<\/li>\n\n\n\n<li>Your administrator credentials work.<\/li>\n\n\n\n<li>The dashboard opens correctly.<\/li>\n\n\n\n<li>Products and orders are accessible.<\/li>\n\n\n\n<li>No redirect loops occur.<\/li>\n\n\n\n<li>Storefront pages continue working.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Do not close your existing administrative session until you have confirmed that the new URL works.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_If_You_Cant_Access_the_Admin_Panel\"><\/span>What If You Can&#8217;t Access the Admin Panel?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You do <strong>not<\/strong> need access to the Magento Admin Panel to change the Admin URL.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can use SSH and Magento CLI:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php bin\/magento setup:config:set --backend-frontname=\"store-control\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Then:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php bin\/magento cache:flush<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Alternatively, edit:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>app\/etc\/env.php<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">directly.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Common_Problems_After_Changing_the_Admin_URL\"><\/span>Common Problems After Changing the Admin URL<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"1_The_Old_URL_Still_Works\"><\/span>1. The Old URL Still Works<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Your browser or caching layer may still have cached information.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Try:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Opening the new URL in a private browser window.<\/li>\n\n\n\n<li>Clearing Magento cache.<\/li>\n\n\n\n<li>Clearing Varnish\/CDN cache if applicable.<\/li>\n\n\n\n<li>Checking <code>app\/etc\/env.php<\/code>.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"2_404_Error_at_the_New_URL\"><\/span>2. 404 Error at the New URL<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Verify that the <code>frontName<\/code> value was changed correctly:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>'backend' =&gt; &#91;\n    'frontName' =&gt; 'store-control'\n],<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Then flush the cache:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php bin\/magento cache:flush<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Also check your web-server and Magento configuration if the problem persists.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"3_Admin_Login_Redirects_Back_to_the_Old_URL\"><\/span>3. Admin Login Redirects Back to the Old URL<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">This can occur when Magento or another caching layer is still using stale configuration.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Clear Magento cache and review the configured Admin URI:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php bin\/magento info:adminuri<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Then restart PHP-FPM or clear relevant server-side caches if necessary.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"4_Admin_Assets_Do_Not_Load\"><\/span>4. Admin Assets Do Not Load<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If CSS or JavaScript files are missing after changing the URL, check your Magento deployment and static content configuration.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You may need to redeploy static content:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php bin\/magento setup:static-content:deploy -f<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Only do this when appropriate for your deployment workflow, as static deployment can take significant time on larger stores.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Best_Practices_for_Magento_Admin_Security\"><\/span>Best Practices for Magento Admin Security<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Changing the Admin URL is helpful, but it should not be your only security measure.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Combine it with:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Enable_Two-Factor_Authentication\"><\/span>Enable Two-Factor Authentication<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">2FA helps protect the administrator account even if a password is compromised.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Use_Strong_Passwords\"><\/span>Use Strong Passwords<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Every administrator should have a unique password that is not reused elsewhere.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Restrict_Admin_Permissions\"><\/span>Restrict Admin Permissions<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Give users only the permissions they actually need.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Use_HTTPS\"><\/span>Use HTTPS<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Always access the Magento Admin Panel over HTTPS.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Use_a_Firewall_or_WAF\"><\/span>Use a Firewall or WAF<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A Web Application Firewall can help block malicious requests and automated attacks before they reach Magento.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Monitor_Login_Attempts\"><\/span>Monitor Login Attempts<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Watch server and application logs for repeated failed login attempts or suspicious administrator activity.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Important_Security_Note\"><\/span>Important Security Note<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Changing <code>\/admin<\/code> to another path does <strong>not<\/strong> make the Magento Admin Panel completely secure. An attacker may still discover a custom Admin URL through scanning, leaked links, browser history, source code, or other information.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Think of the custom Admin URL as one layer in a broader security strategy:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Custom Admin URL + 2FA + Strong Passwords + HTTPS + WAF + Least Privilege + Monitoring<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Changing the Magento Admin URL is a relatively simple way to reduce automated attacks against your administrator login page.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The easiest approach is to run:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php bin\/magento setup:config:set --backend-frontname=\"store-control\"\nphp bin\/magento cache:flush<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Then access your Magento dashboard through:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;example.com\/store-control<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Always record the new Admin URL securely and combine this change with 2FA, strong credentials, server security, and regular Magento updates for better overall protection.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Available next action: Create a downloadable PDF file here in this chat containing the plan and action items above<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"How to Change the Magento Admin URL Changing the Magento Admin URL is a useful security measure that&hellip;","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"csco_display_header_overlay":false,"csco_singular_sidebar":"","csco_page_header_type":"","footnotes":""},"categories":[138],"tags":[],"class_list":["post-2775","post","type-post","status-publish","format-standard","category-magento","cs-entry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Change the Magento Admin URL? - Web Hosting Blogs by Ehostpiya | Tips and Tricks<\/title>\n<meta name=\"description\" content=\"How to Change the Magento Admin URL? - Magento\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ehostpiya.in\/blog\/how-to-change-the-magento-admin-url-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Change the Magento Admin URL? - Web Hosting Blogs by Ehostpiya | Tips and Tricks\" \/>\n<meta property=\"og:description\" content=\"How to Change the Magento Admin URL? - Magento\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ehostpiya.in\/blog\/how-to-change-the-magento-admin-url-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting Blogs by Ehostpiya | Tips and Tricks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/ehostpiya\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-06T12:15:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-10-06T12:15:58+00:00\" \/>\n<meta name=\"author\" content=\"Vandeeta\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Vandeeta\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/how-to-change-the-magento-admin-url-2\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/how-to-change-the-magento-admin-url-2\\\/\"},\"author\":{\"name\":\"Vandeeta\",\"@id\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/#\\\/schema\\\/person\\\/7e99667266ef1b118ad734c1c035d796\"},\"headline\":\"How to Change the Magento Admin URL?\",\"datePublished\":\"2026-10-06T12:15:55+00:00\",\"dateModified\":\"2026-10-06T12:15:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/how-to-change-the-magento-admin-url-2\\\/\"},\"wordCount\":917,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/#organization\"},\"articleSection\":[\"Magento\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/how-to-change-the-magento-admin-url-2\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/how-to-change-the-magento-admin-url-2\\\/\",\"url\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/how-to-change-the-magento-admin-url-2\\\/\",\"name\":\"How to Change the Magento Admin URL? - Web Hosting Blogs by Ehostpiya | Tips and Tricks\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/#website\"},\"datePublished\":\"2026-10-06T12:15:55+00:00\",\"dateModified\":\"2026-10-06T12:15:58+00:00\",\"description\":\"How to Change the Magento Admin URL? - Magento\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/how-to-change-the-magento-admin-url-2\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/how-to-change-the-magento-admin-url-2\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/how-to-change-the-magento-admin-url-2\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Change the Magento Admin URL?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/\",\"name\":\"Web Hosting Blogs by Ehostpiya | Tips and Tricks\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/#organization\",\"name\":\"Web Hosting Blogs by Ehostpiya | Tips and Tricks\",\"url\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/08\\\/512.png\",\"contentUrl\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/08\\\/512.png\",\"width\":512,\"height\":512,\"caption\":\"Web Hosting Blogs by Ehostpiya | Tips and Tricks\"},\"image\":{\"@id\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/facebook.com\\\/ehostpiya\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/#\\\/schema\\\/person\\\/7e99667266ef1b118ad734c1c035d796\",\"name\":\"Vandeeta\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ee031298008d633e52bec71ce70d11a0b605dc666af42cdd52a950f061ad9f08?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ee031298008d633e52bec71ce70d11a0b605dc666af42cdd52a950f061ad9f08?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ee031298008d633e52bec71ce70d11a0b605dc666af42cdd52a950f061ad9f08?s=96&d=mm&r=g\",\"caption\":\"Vandeeta\"},\"sameAs\":[\"https:\\\/\\\/ehostpiya.in\\\/blog\"],\"url\":\"https:\\\/\\\/ehostpiya.in\\\/blog\\\/author\\\/ehostpiya_blog\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Change the Magento Admin URL? - Web Hosting Blogs by Ehostpiya | Tips and Tricks","description":"How to Change the Magento Admin URL? - Magento","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ehostpiya.in\/blog\/how-to-change-the-magento-admin-url-2\/","og_locale":"en_US","og_type":"article","og_title":"How to Change the Magento Admin URL? - Web Hosting Blogs by Ehostpiya | Tips and Tricks","og_description":"How to Change the Magento Admin URL? - Magento","og_url":"https:\/\/ehostpiya.in\/blog\/how-to-change-the-magento-admin-url-2\/","og_site_name":"Web Hosting Blogs by Ehostpiya | Tips and Tricks","article_publisher":"https:\/\/facebook.com\/ehostpiya","article_published_time":"2026-10-06T12:15:55+00:00","article_modified_time":"2026-10-06T12:15:58+00:00","author":"Vandeeta","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Vandeeta","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ehostpiya.in\/blog\/how-to-change-the-magento-admin-url-2\/#article","isPartOf":{"@id":"https:\/\/ehostpiya.in\/blog\/how-to-change-the-magento-admin-url-2\/"},"author":{"name":"Vandeeta","@id":"https:\/\/ehostpiya.in\/blog\/#\/schema\/person\/7e99667266ef1b118ad734c1c035d796"},"headline":"How to Change the Magento Admin URL?","datePublished":"2026-10-06T12:15:55+00:00","dateModified":"2026-10-06T12:15:58+00:00","mainEntityOfPage":{"@id":"https:\/\/ehostpiya.in\/blog\/how-to-change-the-magento-admin-url-2\/"},"wordCount":917,"commentCount":0,"publisher":{"@id":"https:\/\/ehostpiya.in\/blog\/#organization"},"articleSection":["Magento"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/ehostpiya.in\/blog\/how-to-change-the-magento-admin-url-2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/ehostpiya.in\/blog\/how-to-change-the-magento-admin-url-2\/","url":"https:\/\/ehostpiya.in\/blog\/how-to-change-the-magento-admin-url-2\/","name":"How to Change the Magento Admin URL? - Web Hosting Blogs by Ehostpiya | Tips and Tricks","isPartOf":{"@id":"https:\/\/ehostpiya.in\/blog\/#website"},"datePublished":"2026-10-06T12:15:55+00:00","dateModified":"2026-10-06T12:15:58+00:00","description":"How to Change the Magento Admin URL? - Magento","breadcrumb":{"@id":"https:\/\/ehostpiya.in\/blog\/how-to-change-the-magento-admin-url-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ehostpiya.in\/blog\/how-to-change-the-magento-admin-url-2\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ehostpiya.in\/blog\/how-to-change-the-magento-admin-url-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ehostpiya.in\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Change the Magento Admin URL?"}]},{"@type":"WebSite","@id":"https:\/\/ehostpiya.in\/blog\/#website","url":"https:\/\/ehostpiya.in\/blog\/","name":"Web Hosting Blogs by Ehostpiya | Tips and Tricks","description":"","publisher":{"@id":"https:\/\/ehostpiya.in\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ehostpiya.in\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/ehostpiya.in\/blog\/#organization","name":"Web Hosting Blogs by Ehostpiya | Tips and Tricks","url":"https:\/\/ehostpiya.in\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ehostpiya.in\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/ehostpiya.in\/blog\/wp-content\/uploads\/2026\/08\/512.png","contentUrl":"https:\/\/ehostpiya.in\/blog\/wp-content\/uploads\/2026\/08\/512.png","width":512,"height":512,"caption":"Web Hosting Blogs by Ehostpiya | Tips and Tricks"},"image":{"@id":"https:\/\/ehostpiya.in\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/facebook.com\/ehostpiya"]},{"@type":"Person","@id":"https:\/\/ehostpiya.in\/blog\/#\/schema\/person\/7e99667266ef1b118ad734c1c035d796","name":"Vandeeta","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ee031298008d633e52bec71ce70d11a0b605dc666af42cdd52a950f061ad9f08?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ee031298008d633e52bec71ce70d11a0b605dc666af42cdd52a950f061ad9f08?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ee031298008d633e52bec71ce70d11a0b605dc666af42cdd52a950f061ad9f08?s=96&d=mm&r=g","caption":"Vandeeta"},"sameAs":["https:\/\/ehostpiya.in\/blog"],"url":"https:\/\/ehostpiya.in\/blog\/author\/ehostpiya_blog\/"}]}},"_links":{"self":[{"href":"https:\/\/ehostpiya.in\/blog\/wp-json\/wp\/v2\/posts\/2775","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ehostpiya.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ehostpiya.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ehostpiya.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ehostpiya.in\/blog\/wp-json\/wp\/v2\/comments?post=2775"}],"version-history":[{"count":1,"href":"https:\/\/ehostpiya.in\/blog\/wp-json\/wp\/v2\/posts\/2775\/revisions"}],"predecessor-version":[{"id":2776,"href":"https:\/\/ehostpiya.in\/blog\/wp-json\/wp\/v2\/posts\/2775\/revisions\/2776"}],"wp:attachment":[{"href":"https:\/\/ehostpiya.in\/blog\/wp-json\/wp\/v2\/media?parent=2775"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ehostpiya.in\/blog\/wp-json\/wp\/v2\/categories?post=2775"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ehostpiya.in\/blog\/wp-json\/wp\/v2\/tags?post=2775"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}