Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

Change WP-Login or WP-Admin

As far as i know you cannot rename wp-admin. Many themes and plugin uses wp-admin in path. So if you rename it then all your plugins and themes will be broken. If you don’t want your users to access wp-admin then restrict it using .htacess If anyone access your wp-admin url redirect them to other page using .htaccess file. Only allow certain IPs to access wp-admin.

For example use this .htaccess code in your root of wp-admin (Not your wordpress root).
Create a new .htaccess file there and use this code.

AuthUserFile /dev/null
AuthGroupFile /dev/null
AuthName "Example Access Control"
AuthType Basic
<LIMIT GET>
order deny,allow
deny from all
allow from xx.xx.xx.xx
allow from xx.xx.xxx.xx
</LIMIT>

Replace xx.xx.xx.xx with your IP address. You can add more. Thereafter only you can access wp-admin. You can also use redirection plugin.

If you must want to rename wp-admin then proceed to read more but with extreme caution.

Just replace “wp-admin” with your keyword. Use this simple search and replace tool.
Here is the screenshot of that tool.

Warning: If you update your wordpress then your site will be broken. You should replace them in themes and plugins too. I highly NOT recommend this option. Use this option only if its mandatory. I’m not responsible for any problem that arises if you use this option.

Related Posts:

  1. I want to disable login of admin (/wp-admin) with email and make it accessible only with username
  2. How do I set the homepage to the WordPress Admin Dashboard login?
  3. How to Change The WordPress Login URL Without Plugin
  4. 404 redirect wp-login and wp-admin after changing login url [closed]
  5. Efficient way to check local WordPress php files and Database for malicious code? [duplicate]
  6. How to log into WordPress via GET/POST
  7. Trying to login to my site redirects me to the first page
  8. Admin Login Checks
  9. Why WordPress not logout after I have close my browser?
  10. Admin Login page not working at all
  11. Couple questions about .htaccess, login page, updates
  12. Organizing Code in your WordPress Theme's functions.php File?
  13. Disable dragging of meta boxes?
  14. How to Change the Default Home Page for the WordPress Dashboard?
  15. Securing Admin Accounts – Username Discovery
  16. How to redirect/rewrite all /wp-login requests
  17. Custom column for changing post status via ajax
  18. Custom login redirects to wp-admin on wrong password
  19. What is the best method to close off the backend?
  20. Change Login URL Without Plugin
  21. Make fonts.com font work in TinyMCE (iframe referrer issue)
  22. Share same domain for wp-admin but for different website
  23. How to allow users login to WP from external domain and make REST requests
  24. Securing wp-admin folder – Purpose? Importance?
  25. How to remove items from +New admin menu?
  26. Users are redirected to homepage instead of wp-admin
  27. Make sub menu items a main link in the admin menu using fuctions.php
  28. Options for restricting access to wp-admin
  29. Admin account only shows Profile and Dashboard with no activity
  30. Can initial focus be set to search field in WordPress Media Library?
  31. How to move wp-admin login page to another location? [closed]
  32. Adding body class to login page?
  33. Edit a WordPress site without the username and password?
  34. Block access to wp-admin
  35. Should I add the IP of the server that hosts my sites to the list of authorized IPs in the wp-admin/.htaccess?
  36. FORCE_SSL_ADMIN not working
  37. Cannot access wp-admin after disabling all plugin
  38. How to hide wordpress default description box?
  39. Admin username and password
  40. Can’t login to Dashboard when changing site URL to HTTPS
  41. Limit access to wp_admin
  42. WordPress and bbPress Login conflicts?
  43. Website looks fine, but login to wp-admin yields a blank screen
  44. Allow administrators to pick post author on custom post type edit screen
  45. cannot find the login page for local WordPress site
  46. Modify WP-Admin login fields
  47. display dynamic WP Site logo on wp-admin using CSS
  48. Add column to pages table
  49. wp-admin – 404 after custom login form
  50. Logging into sandbox subdomain WP
  51. Logout USER form backoffice after 30 minutes of inactivity [closed]
  52. Having troubles connecting to WordPress login page using Mamp
  53. WP Admin/ WP Login Redirect to themselves
  54. wp-admin folder removed by hacker [closed]
  55. Hide username discovery
  56. Cookie Domain is preventing Admin login
  57. How to replace “Password Protected” text with icon in Admin
  58. Cant login to wp-admin
  59. How can I open up my administrative panel to everyone?
  60. Can’t access wp-admin, redirects to http://%24domain/wp-admin/
  61. WP-admin or any other is redirecting me to (This page doesn’t seem to exist.)
  62. External HTTP API calls slowing down WordPress admin [closed]
  63. how can provide access to wp_admin page for non wp_users?
  64. Creating custom admin panel pages without making a plugin?
  65. I installed WordPress locally now how do I login?
  66. Can’t connect to WP-Admin, blank error message
  67. Blank page when viewing wp-admin
  68. GoDaddy hosting wp-admin problem
  69. WP Admin Login keeps redirecting to login
  70. Is WordPress secure enough for a multi-user article directory?
  71. Uncaught SyntaxError: Unexpected Token Illegal
  72. CPU overload spam – redirect link to wp-admin and new post
  73. define two login page url
  74. Newly created user role not displaying on users screen
  75. WordPress Admin extremely slow when other admin logged in
  76. WordPress Admin Panel Left Sidebar No showing on Post create page
  77. Accessing wordpress tool in local MAMP Site
  78. Login issue with subdomain installs
  79. How can I can I make changes to a WP project I pulled from GItHub?
  80. Can I rename the wp-admin folder?
  81. stop customize.php redirect to login page if admin is not logged in
  82. Failed to load resource: the server responded with a status of 431 ()
  83. Trying to list user and post information from (wp_includes/post.php ) causes Fatal error
  84. WordPress logged in but no access to wp-admin
  85. Changed the path to wp-login and now can’t access WPress dashboard
  86. Unable to log in as admin
  87. Handling multiple account logins?
  88. Not able to access WP admin Page, redirected and a drop down login menu appears 401 error
  89. Can I rename the wp-admin folder?
  90. Cannot login in WordPress even after changing hash password in phpmyadmin
  91. Can’t log into WordPress after domain change
  92. is_admin() conditional statement
  93. Override WordPress Core File?
  94. After Upgrade: $user becomes unknown (id: 0) after successful login?
  95. Redirect users based on their roles, is_admin()
  96. is exposed wp-admin site a serious security vulnerability
  97. WordPress site shows a white page for site/wp_admin. A login returns again to the login screen
  98. Can a user submit requests to wp-admin/admin.php without logging in?
  99. Admin access to secondary site user_can_access_admin_page losing login
  100. login_enqueue_scripts changes are not reflecting
Categories wp-admin Tags admin, hacked, login, security, wp-admin
Where should I add the necessary code to add an extra attribute to the kses allowed tags array?
Getting only the most recent bookmark?

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress