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. Unable to login to my wordpress site. reauth=1 redirection loop
  20. Custom login redirects to wp-admin on wrong password
  21. .htaccess in wp-admin produces a redirect loop
  22. WP-Admin not working properly at WordPress multisite with subdirectories
  23. Share same domain for wp-admin but for different website
  24. How to allow users login to WP from external domain and make REST requests
  25. Wrong canonical link on wp-admin pages
  26. Can I rename the wp-admin folder?
  27. Users are redirected to homepage instead of wp-admin
  28. How to Block Access to Standard Login Flow and Comment Flow
  29. .htaccess rewrite rule for removing .php extension with exception of wp login and wp-admin
  30. Display sortable User meta column in admin panel user’s page
  31. Which ways can be used to log in to WordPress?
  32. WordPress Error establishing a database connection For Admin login only
  33. comment_form – show all fields when logged in
  34. Why should I password protect WP-Admin?
  35. How to change how long items are kept in the trash?
  36. Using /wp-admin works, using /login gives a 404. Why?
  37. Which HTTP headers to use for subdomain embedding?
  38. CDN + WP Admin Query – .htaccess redirection
  39. From 403 error to 500 internal server error
  40. I cannot log into my wordpress site with my wp-login.php [closed]
  41. FORCE_SSL_ADMIN not working
  42. How do I set the homepage to the WordPress Admin Dashboard login?
  43. Why am I unable to login after converting to www?
  44. Can’t access WordPress as an admin – but I can log in as a user!
  45. Today, without warning, all admin panel logins redirect to home page after login. non-admin users logins work well
  46. Wrong wp-admin URL
  47. Detecting all admins that are logged in
  48. WordPress and bbPress Login conflicts?
  49. password reset link being sent as HTTP?
  50. How do I host WordPress on a hidden domain through a reverse proxy?
  51. Users disappeared from wp-admin
  52. Modify WP-Admin login fields
  53. WordPress (behind HAProxy and Jetty), not multisite, in sub folder – and /en/wp-admin/ keeps redirecting to /wp-admin/
  54. How to fix ‘WordPress redirection loop problem in wp-login.php page’?
  55. Do I have to face security problems if I changing default role to Contributor
  56. Sorry, you are not allowed to access this page
  57. Hide username discovery
  58. Require Login Redirect to Login Page
  59. Cannot access WordPress login pages
  60. Cant login to wp-admin
  61. Need help for WordPress User Session Management?
  62. How login is possible, if I deny login page via .htaccess with allow ip
  63. Disable Admin CP authentication (or auto login)
  64. WP-admin or any other is redirecting me to (This page doesn’t seem to exist.)
  65. how can provide access to wp_admin page for non wp_users?
  66. Redirect an entire WordPress site on a subdomain, except wp-admin
  67. Can’t connect to WP-Admin, blank error message
  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. CPU overload spam – redirect link to wp-admin and new post
  72. define two login page url
  73. Could not override the url in wp-config file
  74. wp-admin going directly to 404
  75. WP-Admin throws 404 after changing wp-config Salts
  76. WordPress /wp-admin redirect to wrong port in docker
  77. wp-config.php not affecting my site
  78. Login issue with subdomain installs
  79. How can I can I make changes to a WP project I pulled from GItHub?
  80. Should I prevent access to .htaccess and wp-config.php files?
  81. wp-admin and wp-login.php not Accessible after Cloudflare
  82. Can I rename the wp-admin folder?
  83. stop customize.php redirect to login page if admin is not logged in
  84. Disabling WP-Admin Caching in htaccess
  85. WordPress logged in but no access to wp-admin
  86. Error establishing a database connection – after updating DNS
  87. Changed the path to wp-login and now can’t access WPress dashboard
  88. Unable to log in as admin
  89. Handling multiple account logins?
  90. Not able to access WP admin Page, redirected and a drop down login menu appears 401 error
  91. Can I rename the wp-admin folder?
  92. SSL doesn’t deliver parts of WordPress Administration Module
  93. Cannot login in WordPress even after changing hash password in phpmyadmin
  94. Can’t log into WordPress after domain change
  95. is_admin() conditional statement
  96. Admin Login page not working at all
  97. No wp-admin, wp-config, or .htaccess folder/file
  98. After Upgrade: $user becomes unknown (id: 0) after successful login?
  99. Redirect users based on their roles, is_admin()
  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
  • 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