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

/wp-admin/ doesn’t work but /admin/ does

In general you can change where items link with WP Constants. But according to get_admin_url() it’s possible the URL was filtered with admin_url in which case you might be able to add a filter with a high priority and override what is being sent. The default is;

$url = get_site_url($blog_id, 'wp-admin/', $scheme);

if ( $path && is_string( $path ) )
    $url .= ltrim( $path, "https://wordpress.stackexchange.com/" );

return apply_filters( 'admin_url', $url, $path, $blog_id );

As stated before, you should check your installed plugins (mainly security plugins) or .htaccess for wild redirects. Try disabling all plugins to narrow down that aspect pretty quick. Be sure to check the /wp-content/mu-plugins/ folder for auto-loaded plugins.

If you can, search your theme and plugins for any reference to admin as well as search your database for admin to see where it might be set.

Related Posts:

  1. How to redirect/rewrite all /wp-login requests
  2. Unable to login to my wordpress site. reauth=1 redirection loop
  3. Custom login redirects to wp-admin on wrong password
  4. How to allow users login to WP from external domain and make REST requests
  5. Users are redirected to homepage instead of wp-admin
  6. Display sortable User meta column in admin panel user’s page
  7. How to move wp-admin login page to another location? [closed]
  8. Can’t access admin dashboard with wp-admin without /index.php after it
  9. Adding body class to login page?
  10. Edit a WordPress site without the username and password?
  11. comment_form – show all fields when logged in
  12. Using /wp-admin works, using /login gives a 404. Why?
  13. Cannot log into WordPress Dashboard after removing/adding .htaccess
  14. Change WP-Login or WP-Admin
  15. I cannot log into my wordpress site with my wp-login.php [closed]
  16. How do I set the homepage to the WordPress Admin Dashboard login?
  17. Can’t access WordPress as an admin – but I can log in as a user!
  18. Today, without warning, all admin panel logins redirect to home page after login. non-admin users logins work well
  19. Can’t login to Dashboard when changing site URL to HTTPS
  20. Detecting all admins that are logged in
  21. WordPress and bbPress Login conflicts?
  22. I want to disable login of admin (/wp-admin) with email and make it accessible only with username
  23. Website looks fine, but login to wp-admin yields a blank screen
  24. cannot find the login page for local WordPress site
  25. Users disappeared from wp-admin
  26. Modify WP-Admin login fields
  27. display dynamic WP Site logo on wp-admin using CSS
  28. How to Change The WordPress Login URL Without Plugin
  29. wp-admin – 404 after custom login form
  30. How to fix ‘WordPress redirection loop problem in wp-login.php page’?
  31. Logging into sandbox subdomain WP
  32. 404 redirect wp-login and wp-admin after changing login url [closed]
  33. Having troubles connecting to WordPress login page using Mamp
  34. Sorry, you are not allowed to access this page
  35. WP Admin/ WP Login Redirect to themselves
  36. Cookie Domain is preventing Admin login
  37. Require Login Redirect to Login Page
  38. Cannot access WordPress login pages
  39. Cant login to wp-admin
  40. Why am I locked out of the system?
  41. Why can I log into wp-login.php and not wp-admin.php?
  42. Disable Admin CP authentication (or auto login)
  43. firing function at login within class
  44. WP-admin or any other is redirecting me to (This page doesn’t seem to exist.)
  45. wp-login not found – All usual solutions not working
  46. how can provide access to wp_admin page for non wp_users?
  47. Can’t connect to WP-Admin, blank error message
  48. Blank page when viewing wp-admin
  49. GoDaddy hosting wp-admin problem
  50. WP Admin Login keeps redirecting to login
  51. CPU overload spam – redirect link to wp-admin and new post
  52. define two login page url
  53. Login issue with subdomain installs
  54. How can I can I make changes to a WP project I pulled from GItHub?
  55. WordPress Admin Login Issue
  56. How to log into WordPress via GET/POST
  57. wp-login.php entering password nothing happens
  58. Trying to login to my site redirects me to the first page
  59. stop customize.php redirect to login page if admin is not logged in
  60. Admin Login Checks
  61. WordPress logged in but no access to wp-admin
  62. Changed the path to wp-login and now can’t access WPress dashboard
  63. Unable to log in as admin
  64. Why my login panel has a wrong language?
  65. Handling multiple account logins?
  66. Not able to access WP admin Page, redirected and a drop down login menu appears 401 error
  67. WordPress Login for multiple sites
  68. Cannot login in WordPress even after changing hash password in phpmyadmin
  69. Can’t log into WordPress after domain change
  70. Why WordPress not logout after I have close my browser?
  71. is_admin() conditional statement
  72. Admin Login page not working at all
  73. Impossible User Registration
  74. Couple questions about .htaccess, login page, updates
  75. After Upgrade: $user becomes unknown (id: 0) after successful login?
  76. Redirect users based on their roles, is_admin()
  77. WordPress site shows a white page for site/wp_admin. A login returns again to the login screen
  78. Admin access to secondary site user_can_access_admin_page losing login
  79. login_enqueue_scripts changes are not reflecting
  80. Remove specific items from Quick Edit menu of a Custom Post Type?
  81. Copy my user account’s wp-admin dashboard layout to other users?
  82. Is there a way to submit only meta box content in Post edit page
  83. How to hide a specific user role option in a user role list?
  84. Stop loading “collaborators” users on add new post or page?
  85. Get which template being in use within WordPress-admin
  86. special characters after saving draft interpreted as �
  87. Use Password Protected Form without the use of wp-login.php
  88. Too many redirects after added SSL redirect on port 80 virtual host
  89. Customising Word press Admin – Add Post Page functionality to another similar page
  90. How can I remove commas when adding tags?
  91. Displaying Title in Title Tag on Edit page?
  92. How can I remove unwanted word on my WP site?
  93. issue with wordpress [wp-admin] redirects, when using kubernetes ingress hosting two wordpress websites using path
  94. Can’t acces login on new site
  95. WordPress Admin Panel Left Sidebar No showing on Post create page
  96. After changing Site http to https, can’t access wp login page with a digitalocean hosting
  97. remove_query_arg on options.php
  98. Organising and display thousands of photos in media library
  99. Block tools menu in wp-admin?
  100. is_admin() triggers error
Categories wp-admin Tags login, wp-admin
PuTTY is glitching out when I try to install wordpress
Plugin PHP file gives error 500 [closed]

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