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

WordPress Admin Login Redirect Problem

Assuming you have access to the database, run the following query:

SELECT option_value FROM wp_options WHERE option_name="siteurl" OR option_name="home";

Replace wp_ with the prefix that is defined for $table_prefix in your wp_config.php if it’s not the default wp_.

This is just to ensure that your site is going to the expected location and not still the development one. If it isn’t going to the right location, then that would be why your site is going into a redirection loop when you try to log into the admin section.

Change those two keys in the database or alternatively define it in your wp_config.php using:

define('WP_SITEURL', 'http://example.com');
define('WP_HOME', 'http://example.com');

Related Posts:

  1. Can’t login to my admin area
  2. How to Change the Default Home Page for the WordPress Dashboard?
  3. Cannot access admin panel
  4. Make A WordPress Page Accessible To Admins Only, Redirect Other User Roles
  5. Redirect Admin User in Dashboard
  6. Daily notices of failed login attempts for non-existent admin user
  7. Setting Login with User Name and Password default option for Jetpack Admin Login
  8. I keep getting logged out in Firefox
  9. how to redirect to url.com/wp-admin if url.com/admin is typed in?
  10. Change the Default Pages Menu View in wp-admin
  11. Error thrown. Cannot create references to/from string offsets
  12. Admin page redirect to another admin page
  13. How to determine if an admin is logged in outside the loop
  14. Unable to login, old site with previous developer gone
  15. Using shared SSL for login/admin
  16. wp-login behind nginx reverse-proxy inaccessible — bad redirect?
  17. Can’t access dashboard as administrator, login as any other level works though
  18. Unable to Access WP Admin or Login buttons after Migration
  19. using rewrites to secure login page
  20. Client system for media review?
  21. Redirect in an Admin page
  22. WordPress administration Over SSL – To Force SSL Logins and SSL Admin Access
  23. Redirect from the dashboard to edit.php if wp_is_mobile() is true
  24. Keep Logged in Users out of Admin Panel
  25. Unable to get to the admin panel
  26. I can’t access the login panel on my offline website
  27. Admin login not working
  28. Does deleting the table users prevent all logins?
  29. Logout Redirect and also WP-login.php Redirect
  30. logout redirect only from admin page
  31. Locked out of WordPress website from wrong amount of login attempts
  32. current_user_can(‘administrator’) not working in custom login
  33. Send admin to a different login than users?
  34. Redirect public site to another one but allow administrators to access the old site
  35. Want to know who is login Admin/User
  36. Remove iPhone detection on login page
  37. Any known plugins for master admin login to edit all on front end?
  38. Login to admin by frontend form?
  39. Error “Sorry, you are not allowed to access this page”
  40. I can’t access login page
  41. Trying to login to my site redirects me to the first page
  42. Admins loggin in to our wordpress site default to the admin page
  43. ‘Conflict’ with action deleted_post and is_admin()
  44. WordPress login not working
  45. Login to Admin Dashboard Problem
  46. WordPress login process is hanging
  47. WordPress “Hide WP” Gives Me Error After Admin Login [closed]
  48. Scripts are not called until I login from wordpress backend
  49. Disable wp-admin log on lightbox overlay
  50. WP Logs me out after updating anything on dashboard
  51. How to cancel redirection to admin side
  52. Can’t access my wp admin: captcha images invisible, gives me error message
  53. 2FA for admin login only, is it doable?
  54. What are the standard admin CSS id/class tags?
  55. Admin Ajax is returning 0
  56. Add custom column to Users admin panel
  57. wp_verify_nonce vs check_admin_referer
  58. Add a Separator to the Admin Menu?
  59. How to determine whether we are in add New page/post/CPT or in edit page/post/CPT in wordpress admin?
  60. how to know if admin is in edit page or post [duplicate]
  61. Modal window from within WordPress admin
  62. Where in WP can I check history or log of updates of plugins etc?
  63. Admin Page Redirect
  64. Adding a custom admin page
  65. Redirect user to original url after login?
  66. How does admin-ajax.php work?
  67. How to remove entire admin menu?
  68. How do I remove dashboard access from specific user roles?
  69. How can I speed up my WP admin section?
  70. How to pass parameters to admin_notices?
  71. Admin: very slow edit page caused by core meta query
  72. if admin is logged in
  73. Search posts by ID in admin
  74. Setting admin edit panels & metaboxes positions and visibility for ALL users and admins
  75. Find out which moderator approved comment?
  76. The website cannot display the page
  77. How To Remove WordPress Version From The Admin Footer
  78. Sort pages in loop by admin’s page attributes order field?
  79. Edit “thank you for creating with WordPress” in version 3.3.1
  80. Hide other users’ posts in admin panel
  81. Set Default Admin Colour For All Users
  82. Editor Styles and Typekit
  83. WordPress admin stylesheet
  84. This CSS Stuffing Works, But Is This A Good Practice?
  85. Is it possible to create a WordPress tour? V3.3.1
  86. Securing Admin Accounts – Username Discovery
  87. Login redirect to previous page
  88. is_admin() returns true when using admin-ajax.php from front end script
  89. How to save dismissable notice state in WP 4.2?
  90. How do I optimize a custom post type admin page with 25,000 posts?
  91. Settings API – adding setting fields dynamically?
  92. Disable Media Uploads to non Admin Users
  93. How do I load a CSS style into WordPress admin area only?
  94. Redirect to referring page after logging in
  95. Allowing admin-ajax.php to receive “application/json” instead of “x-www-form-urlencoded”
  96. Can an admin check passwords of registered users?
  97. How can I target WordPress 3.8 new interface MP6 with CSS?
  98. Notification that the admin is online
  99. Does wordpress create activity, update logs?
  100. sort child pages on admin
Categories admin Tags admin, login, redirect
Enable Comments Box On Custom Post Type
WordPress domain configuration on a different server

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