Bobcares

5 simple methods to solve WordPress wp admin redirect problem

by | Nov 9, 2018

My WordPress wp admin page always redirects to login screen. I use the correct credentials. Please help me!!

That was a recent support request we received at our Outsourced Tech Support Services where we resolve support queries for web hosts.

The WordPress admin panel shows the login page again and again even though he used the correct logins every time.

What’s going wrong?Today, let’s take a quick look at the common causes for WordPress wp admin redirect problem and how we fix them.

 

WordPress wp admin redirect problem – Top 5 Causes and Fixes

In our experience handling WordPress wp admin redirect problems, we’ll see the major causes for this error.

It’s always advisable to take a backup of your website files and database before you try any of these steps.

 

1. Cookies and Cache problems

WordPress uses session cookies to store authentication details and is used when a user logs into the WordPress admin area.

These cookies expire every 15 days.

You update your wp-admin password, but your browser cookies store older information.

Similarly, your browser cache may use older versions of some of the WordPress files.

All these can lead to WordPress wp admin redirect problem.

 

Solution

To verify this, clear your browser cache and cookies, restart the browser and try to login again.

Always, make sure to enable cookies in your browser as disabling this feature will affect your WordPress login.

You can also use alternate browsers to access wp-admin page and check the results.

 

2. Plugin conflict

Sometimes, WordPress plugins can be the culprit.

We’ve seen cases where conflict between plugins, a poorly coded plugin or an incomplete plugin update causes wp-admin redirect problem.

Solution

To confirm that plugins create problems, we’ll deactivate all the plugins associated with the WordPress site.

Our Support Engineers connect to the hosting account via FTP and rename “plugins” folder to something else. This will deactivate all the plugins.

If this is successful, we’ll reactivate each plugin one by one and isolate the faulty plugin.

 

3. Theme conflict

Like plugins, WordPress themes can also create wp admin redirect problems.

You may face this login issue after new theme installs, theme updates, WordPress updates, etc.

Solution

To identify that theme creates the problem, we’ll switch to a default theme.

Our Support Engineers connect to the website’s database and update the theme to default one like TwentySixteen.

This can be done quickly by editing the fields “Template” and “Stylesheet” in “wp-options” table.

If the WordPress wp-admin login works fine, we confirm that the issue is with the theme.

We’ll then remove the faulty theme and upload a fresh copy of it. If it’s not fixed, then only the theme developer can help here.

 

4. Corrupted .htaccess file

The .htaccess file in WordPress contains the rewrite rules for the WordPress site and associated links to work fine.

But, it can happen that this .htaccess file is corrupted or accidentally modified by a plugin.

As a result, these rules no longer work fine and can result in WordPress wp admin redirect loop error.

Solution

To fix this problem, our Support Engineers connect to the website via FTP and backup the .htaccess file by renaming it to something else(eg: .htaccess_bak).

Sometimes, an .htaccess file can be found in the “wp-admin” directory. You need to rename this file as well.

If this works fine, we’ll login to wp-admin panel and regenerate .htaccess file using the below steps.

  • Go to Settings > Permalinks
  • Click Save.

5. Incorrect SiteURL

In WordPress, the parameter “SiteURL” is where you specify the address people have to type in their browser to access the blog.

SiteURL controls the display of the URL in the admin section of your page, main page and are used throughout the WordPress site.

A mis-configured SiteURL can also cause WordPress wp admin redirect problem.

Solution

We’ll connect to the website’s database and add the full website name(including http or https) in the fields “siteurl” and “home” in “wp-options” table.

Alternatively, we’ll add the following code in the wp-config.php file. Replace “www.yourdomain.com” with the exact domain name.

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

 

You’re done!! Go back to your WordPress admin page and check again.

 

Conclusion

One time or another, WordPress website owners will come across “WordPress wp admin redirect problem“. Today, we’ve seen the top 5 reasons of this error and how our Support Engineers fix them.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

SEE SERVER ADMIN PLANS

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

5 Comments

  1. Lars

    Thx for that!

    Reply
    • Hiba Razak

      Hi Shubham,
      Please contact our support team via live chat

      Reply
    • Karl

      Hi Friend, How did you sort out your issue. I have the same issue with squished login that keeps redirecting me?

      Reply
      • Hiba Razak

        Hi,
        Please contact our support team through live chat (click on the icon at right-bottom).

        Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF