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

404 redirect wp-login and wp-admin after changing login url [closed]

Untested with your code but assuming it will be automated bots hitting your login pages you should get them straight off your site with something like this:

RedirectMatch 301 wp-login.php http://www.google.com
RedirectMatch 301 wp-admin http://www.google.com

Related Posts:

  1. How to Change The WordPress Login URL Without Plugin
  2. Couple questions about .htaccess, login page, updates
  3. Change Login URL Without Plugin
  4. Securing wp-admin folder – Purpose? Importance?
  5. Options for restricting access to wp-admin
  6. Can’t access admin dashboard with wp-admin without /index.php after it
  7. How to change “wp-admin” to something else without search-replacing the core?
  8. Block access to wp-admin
  9. Cannot log into WordPress Dashboard after removing/adding .htaccess
  10. Change WP-Login or WP-Admin
  11. Should I add the IP of the server that hosts my sites to the list of authorized IPs in the wp-admin/.htaccess?
  12. I want to disable login of admin (/wp-admin) with email and make it accessible only with username
  13. Cookie Domain is preventing Admin login
  14. Blank page when viewing wp-admin
  15. Why WordPress not logout after I have close my browser?
  16. Can I rename the wp-admin folder?
  17. What’s the easiest way to stop WP from ever logging me out
  18. “Too many redirects” ONLY when trying to access wp-admin page
  19. How to redirect/rewrite all /wp-login requests
  20. Use a different domain for SSL
  21. Unable to login to my wordpress site. reauth=1 redirection loop
  22. Custom login redirects to wp-admin on wrong password
  23. What is the best method to close off the backend?
  24. .htaccess in wp-admin produces a redirect loop
  25. WP-Admin not working properly at WordPress multisite with subdirectories
  26. Share same domain for wp-admin but for different website
  27. How to allow users login to WP from external domain and make REST requests
  28. Wrong canonical link on wp-admin pages
  29. Can I rename the wp-admin folder?
  30. Users are redirected to homepage instead of wp-admin
  31. WordPress in sub directory wp-admin problem
  32. How to Block Access to Standard Login Flow and Comment Flow
  33. .htaccess rewrite rule for removing .php extension with exception of wp login and wp-admin
  34. Display sortable User meta column in admin panel user’s page
  35. Which ways can be used to log in to WordPress?
  36. How to move wp-admin login page to another location? [closed]
  37. Adding body class to login page?
  38. Edit a WordPress site without the username and password?
  39. WordPress Error establishing a database connection For Admin login only
  40. comment_form – show all fields when logged in
  41. Why should I password protect WP-Admin?
  42. Call to undefined function insert_with_markers
  43. How to change how long items are kept in the trash?
  44. Using /wp-admin works, using /login gives a 404. Why?
  45. Which HTTP headers to use for subdomain embedding?
  46. CDN + WP Admin Query – .htaccess redirection
  47. From 403 error to 500 internal server error
  48. I cannot log into my wordpress site with my wp-login.php [closed]
  49. FORCE_SSL_ADMIN not working
  50. How do I set the homepage to the WordPress Admin Dashboard login?
  51. Why am I unable to login after converting to www?
  52. Can’t access WordPress as an admin – but I can log in as a user!
  53. Today, without warning, all admin panel logins redirect to home page after login. non-admin users logins work well
  54. Cannot Access Admin Area After Migration
  55. Admin username and password
  56. Wrong wp-admin URL
  57. Can’t login to Dashboard when changing site URL to HTTPS
  58. Detecting all admins that are logged in
  59. Limit access to wp_admin
  60. WordPress and bbPress Login conflicts?
  61. Website looks fine, but login to wp-admin yields a blank screen
  62. password reset link being sent as HTTP?
  63. cannot find the login page for local WordPress site
  64. How do I host WordPress on a hidden domain through a reverse proxy?
  65. Users disappeared from wp-admin
  66. Modify WP-Admin login fields
  67. display dynamic WP Site logo on wp-admin using CSS
  68. WordPress (behind HAProxy and Jetty), not multisite, in sub folder – and /en/wp-admin/ keeps redirecting to /wp-admin/
  69. wp-admin – 404 after custom login form
  70. How to fix ‘WordPress redirection loop problem in wp-login.php page’?
  71. Logging into sandbox subdomain WP
  72. Logout USER form backoffice after 30 minutes of inactivity [closed]
  73. Having troubles connecting to WordPress login page using Mamp
  74. Do I have to face security problems if I changing default role to Contributor
  75. Sorry, you are not allowed to access this page
  76. WP Admin/ WP Login Redirect to themselves
  77. Hide username discovery
  78. Require Login Redirect to Login Page
  79. How to secure files based on format and word in file name with wp-config or htaccess?
  80. Cannot access WordPress login pages
  81. Cant login to wp-admin
  82. /wp-admin/ doesn’t work but /admin/ does
  83. Efficient way to check local WordPress php files and Database for malicious code? [duplicate]
  84. Can’t log into WordPress after domain change
  85. Making WP Admin Folder accessable JUST under a different link
  86. is_admin() conditional statement
  87. Admin Login page not working at all
  88. Impossible User Registration
  89. How to protect wp-admin from third party access?
  90. No wp-admin, wp-config, or .htaccess folder/file
  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. WordPress change role from administrator to author by itself (automatically)
  98. User can see and enter the WordPress Admin without login
  99. Wildcard multisite wp-admin url wrongfully redirected
  100. login_enqueue_scripts changes are not reflecting
Categories wp-admin Tags .htaccess, login, security, wp-admin, wp-config
Change “add to cart” button color based on Woocommerce product category [closed]
Replace specific middle part of url

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