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?
- Search posts by ID in admin
- Sort pages in loop by admin’s page attributes order field?
- Edit “thank you for creating with WordPress” in version 3.3.1
- Login redirect to previous page
- Plugin to remove Admin menu items based on user role?
- How to obtain the user ID of the current profile being edited in WP-Admin?
- Get current active wp color scheme
- How to fix admin stylesheet muck-up? [closed]
- Adding custom Javascript to the head tag in Admin
- Replacing the List table of a Post Type
- changing body background color for custom post type in admin backend
- Adding scripts to admin page in my theme
- How to notify the admin about something that happened during a cron job
- I’m receiving requests to change the admin email. How can this be happening?
- Can’t access login screen, wp-login.php 404’s
- Set admin body to ltr on a rtl installation
- Are there any filters to add additional columns to the list table on edit-comments.php?
- Can I mass change all admin emails for a multisite instance?
- Two websites one database, administrator not working on second website
- How can I force users to a particular subdomain to log in for MU (Multisite)?
- WordPress admin area used to administer other site
- wp-admin – 404 after custom login form
- WordPress post feature image not uploading
- Super administrator db name
- Dashicons and Pseudo :before
- Hide admin toolbar based on a query string
- How to use login_redirect with a user capability
- Remove Permalink From Admin Edit Post
- Can’t access wp-admin, redirects to http://%24domain/wp-admin/
- Custom Login Form – Redirect user to login page if not logged in
- remove menus for a specific role?
- WordPress Admin Menu Order for ‘admin.php’ pages
- Show global Message in User Profiles with admin only Input field in WordPress Backend
- Wp-Admin FTPS Connection Error unlike Filezilla
- Can’t login to WordPress admin panel after changing domain to use WordPress pages as a fallback from React
- Adding a WordPress Admin Dashboard to my local wordpress site
- cannot access the wordpress dashboard after changing the site url
- Infinite loop when logging out using custom login form
- After upgrading to WP 5.1.1 sometimes I need to reauth infinitively
- How can I create multiple different admin roles with their own capabilities
- Find out if post was just updated on post edit screen
- Wp-admin page not found following copy of site
- wordpress login loop after install
- login page not working [closed]
- Admin user getting redirected to /wp-admin/user
- How to remove certain feed from my dashboard in WP admin
- Hiding the media-new.php File URL option via jQuery