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:
- Can’t login to my admin area
- How to Change the Default Home Page for the WordPress Dashboard?
- Cannot access admin panel
- Make A WordPress Page Accessible To Admins Only, Redirect Other User Roles
- Redirect Admin User in Dashboard
- Daily notices of failed login attempts for non-existent admin user
- Setting Login with User Name and Password default option for Jetpack Admin Login
- I keep getting logged out in Firefox
- how to redirect to url.com/wp-admin if url.com/admin is typed in?
- Change the Default Pages Menu View in wp-admin
- Error thrown. Cannot create references to/from string offsets
- Admin page redirect to another admin page
- How to determine if an admin is logged in outside the loop
- Unable to login, old site with previous developer gone
- Using shared SSL for login/admin
- wp-login behind nginx reverse-proxy inaccessible — bad redirect?
- Can’t access dashboard as administrator, login as any other level works though
- Unable to Access WP Admin or Login buttons after Migration
- using rewrites to secure login page
- Client system for media review?
- Redirect in an Admin page
- WordPress administration Over SSL – To Force SSL Logins and SSL Admin Access
- Redirect from the dashboard to edit.php if wp_is_mobile() is true
- Keep Logged in Users out of Admin Panel
- Unable to get to the admin panel
- I can’t access the login panel on my offline website
- Admin login not working
- Does deleting the table users prevent all logins?
- Logout Redirect and also WP-login.php Redirect
- logout redirect only from admin page
- Locked out of WordPress website from wrong amount of login attempts
- current_user_can(‘administrator’) not working in custom login
- Send admin to a different login than users?
- Redirect public site to another one but allow administrators to access the old site
- Want to know who is login Admin/User
- Remove iPhone detection on login page
- Any known plugins for master admin login to edit all on front end?
- Login to admin by frontend form?
- Error “Sorry, you are not allowed to access this page”
- I can’t access login page
- Trying to login to my site redirects me to the first page
- Admins loggin in to our wordpress site default to the admin page
- ‘Conflict’ with action deleted_post and is_admin()
- WordPress login not working
- Login to Admin Dashboard Problem
- WordPress login process is hanging
- WordPress “Hide WP” Gives Me Error After Admin Login [closed]
- Scripts are not called until I login from wordpress backend
- Disable wp-admin log on lightbox overlay
- WP Logs me out after updating anything on dashboard
- How to cancel redirection to admin side
- Can’t access my wp admin: captcha images invisible, gives me error message
- 2FA for admin login only, is it doable?
- What are the standard admin CSS id/class tags?
- Admin Ajax is returning 0
- Add custom column to Users admin panel
- wp_verify_nonce vs check_admin_referer
- Add a Separator to the Admin Menu?
- How to determine whether we are in add New page/post/CPT or in edit page/post/CPT in wordpress admin?
- how to know if admin is in edit page or post [duplicate]
- Modal window from within WordPress admin
- Where in WP can I check history or log of updates of plugins etc?
- Admin Page Redirect
- Adding a custom admin page
- Redirect user to original url after login?
- How does admin-ajax.php work?
- How to remove entire admin menu?
- How do I remove dashboard access from specific user roles?
- How can I speed up my WP admin section?
- How to pass parameters to admin_notices?
- Admin: very slow edit page caused by core meta query
- if admin is logged in
- Search posts by ID in admin
- Setting admin edit panels & metaboxes positions and visibility for ALL users and admins
- Find out which moderator approved comment?
- The website cannot display the page
- How To Remove WordPress Version From The Admin Footer
- Sort pages in loop by admin’s page attributes order field?
- Edit “thank you for creating with WordPress” in version 3.3.1
- Hide other users’ posts in admin panel
- Set Default Admin Colour For All Users
- Editor Styles and Typekit
- WordPress admin stylesheet
- This CSS Stuffing Works, But Is This A Good Practice?
- Is it possible to create a WordPress tour? V3.3.1
- Securing Admin Accounts – Username Discovery
- Login redirect to previous page
- is_admin() returns true when using admin-ajax.php from front end script
- How to save dismissable notice state in WP 4.2?
- How do I optimize a custom post type admin page with 25,000 posts?
- Settings API – adding setting fields dynamically?
- Disable Media Uploads to non Admin Users
- How do I load a CSS style into WordPress admin area only?
- Redirect to referring page after logging in
- Allowing admin-ajax.php to receive “application/json” instead of “x-www-form-urlencoded”
- Can an admin check passwords of registered users?
- How can I target WordPress 3.8 new interface MP6 with CSS?
- Notification that the admin is online
- Does wordpress create activity, update logs?
- sort child pages on admin