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. Can I rename the wp-admin folder?
  14. What’s the easiest way to stop WP from ever logging me out
  15. Admin Page Redirect
  16. Disable dragging of meta boxes?
  17. How to Change the Default Home Page for the WordPress Dashboard?
  18. How to remove screen options and help links in the admin area?
  19. Securing Admin Accounts – Username Discovery
  20. Sort admin menu items
  21. How to redirect/rewrite all /wp-login requests
  22. Unable to login to my wordpress site. reauth=1 redirection loop
  23. Custom column for changing post status via ajax
  24. Custom login redirects to wp-admin on wrong password
  25. What is the best method to close off the backend?
  26. Change Login URL Without Plugin
  27. Make fonts.com font work in TinyMCE (iframe referrer issue)
  28. Share same domain for wp-admin but for different website
  29. How to allow users login to WP from external domain and make REST requests
  30. Securing wp-admin folder – Purpose? Importance?
  31. Can I rename the wp-admin folder?
  32. How to remove items from +New admin menu?
  33. Users are redirected to homepage instead of wp-admin
  34. Make sub menu items a main link in the admin menu using fuctions.php
  35. Add column to pages table
  36. Options for restricting access to wp-admin
  37. Admin account only shows Profile and Dashboard with no activity
  38. Can initial focus be set to search field in WordPress Media Library?
  39. wp-admin – save options without refreshing?
  40. Display sortable User meta column in admin panel user’s page
  41. How to move wp-admin login page to another location? [closed]
  42. Websites defaced by uploading script using theme editor
  43. Can’t access admin dashboard with wp-admin without /index.php after it
  44. How to change “wp-admin” to something else without search-replacing the core?
  45. Adding body class to login page?
  46. Edit a WordPress site without the username and password?
  47. How do you modify CSS files via admin panel?
  48. comment_form – show all fields when logged in
  49. How to prevent parent admin page from appearring as a child admin page
  50. Block access to wp-admin
  51. Using /wp-admin works, using /login gives a 404. Why?
  52. I keep getting logged out in Firefox
  53. Cannot log into WordPress Dashboard after removing/adding .htaccess
  54. Should I add the IP of the server that hosts my sites to the list of authorized IPs in the wp-admin/.htaccess?
  55. SSL Partially breaking admin panel and elementor
  56. I cannot log into my wordpress site with my wp-login.php [closed]
  57. FORCE_SSL_ADMIN not working
  58. What is the practical difference between is_admin() and is_blog_admin()?
  59. Cannot access wp-admin after disabling all plugin
  60. Create a admin page in wordpress without admin menus (“wordpress sidebars”)
  61. How to hide wordpress default description box?
  62. Can’t access WordPress as an admin – but I can log in as a user!
  63. Today, without warning, all admin panel logins redirect to home page after login. non-admin users logins work well
  64. Admin username and password
  65. Can’t login to Dashboard when changing site URL to HTTPS
  66. Detecting all admins that are logged in
  67. Limit access to wp_admin
  68. WordPress and bbPress Login conflicts?
  69. Website looks fine, but login to wp-admin yields a blank screen
  70. password reset link being sent as HTTP?
  71. Allow administrators to pick post author on custom post type edit screen
  72. How to make the front-end RTL without changing the admin panel language?
  73. cannot find the login page for local WordPress site
  74. Users disappeared from wp-admin
  75. Modify WP-Admin login fields
  76. display dynamic WP Site logo on wp-admin using CSS
  77. Add column to pages table
  78. wp-admin – 404 after custom login form
  79. How to fix ‘WordPress redirection loop problem in wp-login.php page’?
  80. Logging into sandbox subdomain WP
  81. Logout USER form backoffice after 30 minutes of inactivity [closed]
  82. Having troubles connecting to WordPress login page using Mamp
  83. WordPress login not working
  84. is_admin() conditional statement
  85. Impossible User Registration
  86. How to protect wp-admin from third party access?
  87. Is it possible to tell if a user is logged into WordPress from looking at the cookies which are set?
  88. Why when I click on a link into the WP admin panel I am redirected to a link that doesn’t contains wp-admin prefix, so I obtain 404 error
  89. Override WordPress Core File?
  90. How to make the Panel // WP-Admin lighter via Mobile
  91. After Upgrade: $user becomes unknown (id: 0) after successful login?
  92. Redirect users based on their roles, is_admin()
  93. is exposed wp-admin site a serious security vulnerability
  94. WordPress site shows a white page for site/wp_admin. A login returns again to the login screen
  95. Can a user submit requests to wp-admin/admin.php without logging in?
  96. Admin access to secondary site user_can_access_admin_page losing login
  97. Administrator user cannot access dashboard after localwp import
  98. WordPress change role from administrator to author by itself (automatically)
  99. User can see and enter the WordPress Admin without 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
  • Post Navigation Elementor
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • WPFacet multiple loop displaying duplicate content
  • Get the name of the template/*html file used
  • Fix: WordPress.DB.PreparedSQL.NotPrepared Plugin Check (PCP)
  • Removing unnecessary CSS and JS code from wp_head()
  • hexagonal image gallery. Am I on the right track? [closed]
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
© 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