{"id":440,"date":"2024-06-14T18:31:04","date_gmt":"2024-06-14T18:31:04","guid":{"rendered":"https:\/\/zalvis.com\/docs\/?p=440"},"modified":"2024-06-14T18:31:04","modified_gmt":"2024-06-14T18:31:04","slug":"how-to-change-wordpress-admin-url","status":"publish","type":"post","link":"https:\/\/zalvis.com\/docs\/how-to-change-wordpress-admin-url.html","title":{"rendered":"How to Change WordPress Admin URL"},"content":{"rendered":"<p>To keep your WordPress login page safe and prevent attackers from accessing your admin login, you need to change the login URL to a new unique URL. This could really help when it comes to fighting attacks, hacks, and brute-force attacks.<\/p>\n<p>To change the WordPress Admin URL, you can use a plugin such as &#8220;WPS Hide Login&#8221; or you can manually edit the functions.php file in your WordPress theme. You can use plugins like iThemes Security, WPS Hide Login plugins, etc.<\/p>\n<p><strong>NOTE<\/strong>: Make sure that you generate a full backup of your website before proceeding with any changes,<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_81 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-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/zalvis.com\/docs\/how-to-change-wordpress-admin-url.html\/#Change_Your_WordPress_Login_Page_Using_the_WPS_Hide_Login_plugin\" >Change Your WordPress Login Page Using the WPS Hide Login plugin<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/zalvis.com\/docs\/how-to-change-wordpress-admin-url.html\/#Change_Your_WordPress_Login_Page_Using_The_functionsphp_File_Manual_Method\" >Change Your WordPress Login Page Using The functions.php File \nManual Method:<\/a><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"Change_Your_WordPress_Login_Page_Using_the_WPS_Hide_Login_plugin\"><\/span><strong>Change Your WordPress Login Page Using the WPS Hide Login plugin<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>The easiest way to change your WordPress login URL page is by using a free plugin like WPS Hide Login, The plugin is very lightweight, and it doesn\u2019t change any files in the core or add rewrite rules.<\/p>\n<ul>\n<li>Log into the WordPress dashboard<\/li>\n<li>Go to plugins<\/li>\n<li>Add new<\/li>\n<li>Search for the WPS Hide Login plugin<\/li>\n<li>click Install Now.<\/li>\n<li>Proceed to activate the plugin<\/li>\n<li>After activation, Go to Settings &gt; WPS Hide Login<\/li>\n<li>Enter a new URL for the login page and save the changes<\/li>\n<li>The link to the WordPress Dashboard will be changed from testing.com\/wp-admin to testingname.com\/login.<\/li>\n<li>Your new login page will become effective and your old login URL will no longer work!<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"Change_Your_WordPress_Login_Page_Using_The_functionsphp_File_Manual_Method\"><\/span><strong>Change Your WordPress Login Page Using The functions.php File<\/strong><br \/>\n<strong>Manual Method:<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ul>\n<li>Access the functions.php file in your WordPress theme<\/li>\n<li>Add the following code:<\/li>\n<\/ul>\n<div class=\"CodeTabs CodeTabs_initial theme-light\">\n<blockquote>\n<div class=\"CodeTabs-toolbar\" role=\"tablist\">function custom_admin_url() { return &#8216;\/my-secret-login&#8217;; } add_filter(&#8216;login_url&#8217;, &#8216;custom_admin_url&#8217;);<\/div>\n<div role=\"tablist\"><\/div>\n<\/blockquote>\n<div class=\"CodeTabs-toolbar\" role=\"tablist\">Replace &#8216;\/my-secret-login&#8217; with your desired login URL Save the functions.php file<\/div>\n<\/div>\n<div role=\"tablist\">\nYou may need to log out and log back in for the changes to take effect<\/div>\n<div role=\"tablist\">\n<p>Please note that changing the URL of the login page does not provide full security for your website, it is just an extra layer of protection to make it harder for hackers to find the login page.<\/p>\n<p>Another way to change your WordPress login page is to edit your .htaccess file by using a password-protect to protect your login page with a .htpasswd. This will restrict those without passwords to access the login page.<\/p>\n<\/div>\n<div class=\"qfybt69da1b8ab0072\" >If you enjoyed this article, then you\u2019ll love Zalvis's Cloud Hosting platform. Turbocharge your website and get 24\/7 support from our veteran team. Our world-class hosting infrastructure focuses on auto-scaling, performance, and security. Let us show you the Zalvis difference! <a href=\"https:\/\/zalvis.com\/\">Check out our services.<\/a><\/div><style type=\"text\/css\">\r\n@media screen and (min-width: 1201px) {\r\n.qfybt69da1b8ab0072 {\r\ndisplay: block;\r\n}\r\n}\r\n@media screen and (min-width: 993px) and (max-width: 1200px) {\r\n.qfybt69da1b8ab0072 {\r\ndisplay: block;\r\n}\r\n}\r\n@media screen and (min-width: 769px) and (max-width: 992px) {\r\n.qfybt69da1b8ab0072 {\r\ndisplay: block;\r\n}\r\n}\r\n@media screen and (min-width: 768px) and (max-width: 768px) {\r\n.qfybt69da1b8ab0072 {\r\ndisplay: block;\r\n}\r\n}\r\n@media screen and (max-width: 767px) {\r\n.qfybt69da1b8ab0072 {\r\ndisplay: block;\r\n}\r\n}\r\n<\/style>\r\n","protected":false},"excerpt":{"rendered":"<p>To keep your WordPress login page safe and prevent attackers from accessing your admin login, you need to change the login URL to a new unique URL. This could really help when it comes to fighting attacks, hacks, and brute-force attacks. To change the WordPress Admin URL, you can use a plugin such as &#8220;WPS [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-440","post","type-post","status-publish","format-standard","hentry","category-wordpress"],"_links":{"self":[{"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/posts\/440","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/comments?post=440"}],"version-history":[{"count":2,"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/posts\/440\/revisions"}],"predecessor-version":[{"id":442,"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/posts\/440\/revisions\/442"}],"wp:attachment":[{"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/media?parent=440"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/categories?post=440"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zalvis.com\/docs\/wp-json\/wp\/v2\/tags?post=440"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}