How to Fix WordPress Login Page Redirect/Refresh Issues Print

  • 0

How to Fix WordPress Login Page Redirect/Refresh Issues

If you’re experiencing issues where your WordPress login page keeps refreshing or redirecting you back to the login screen, there are a few common causes and solutions to try. This guide covers several methods to resolve these login page issues so you can access your WordPress Dashboard.


Step 1: Clear Your Browser Cache and Cookies

Sometimes, stored cache or cookies in your browser can prevent successful login.

  1. Clear Browser Cache
    • Go to your browser’s settings or options menu.
    • Locate the Privacy or History section and choose Clear Browsing Data.
    • Clear your cache and cookies, ensuring Cached Images and Files and Cookies and Site Data are selected.
    • Refresh your browser and attempt to log in again.

Step 2: Disable Plugins

A plugin conflict can cause login issues. You can disable plugins through the Shared Hosting Control Panel.

  1. Log into the Shared Hosting Control Panel

  2. Navigate to the Plugins Section

    • Select your website and go to Apps from the top menu.
    • Choose your WordPress install, then click Plugins in the left-hand menu.
  3. Deactivate All Plugins

    • Click Deactivate next to each plugin to disable them all at once.
    • Try logging in to WordPress. If successful, reactivate each plugin one-by-one to identify the conflicting plugin.

Alternative Method: If you can’t access the Shared Hosting Control Panel, you can also disable plugins by renaming the wp-content/plugins folder using FTP.


Step 3: Reset Your WordPress Site URL

An incorrect site URL can also cause login issues.

  1. Access wp-config.php

    • In the Shared Hosting Control Panel, open File Manager or connect via FTP.
    • Locate wp-config.php in the root directory of your WordPress installation.
  2. Edit wp-config.php

    • Add the following lines above the /* That's all, stop editing! */ line:

      php
      Copy code
      define('WP_HOME', 'https://yourdomain.com'); define('WP_SITEURL', 'https://yourdomain.com');
    • Replace https://yourdomain.com with your actual domain name.

  3. Save Changes

    • Save the file and try logging in again.

Step 4: Update .htaccess File

A corrupted .htaccess file can also cause login issues.

  1. Rename .htaccess

    • Access File Manager or FTP and locate the .htaccess file in your WordPress root directory.
    • Rename it to .htaccess_old to temporarily disable it.
  2. Generate a New .htaccess

    • Log into your WordPress Dashboard, go to Settings > Permalinks, and click Save Changes to create a new .htaccess file with default settings.
  3. Test Your Login

    • Try logging in again to see if the issue is resolved.

Step 5: Increase PHP Memory Limit

If your site has insufficient PHP memory, it can prevent login.

  1. Edit wp-config.php

    • Open wp-config.php via File Manager or FTP.

    • Add this line near the bottom:

      php
      Copy code
      define('WP_MEMORY_LIMIT', '256M');
  2. Save Changes

    • Save the file, then try logging in again.

Step 6: Clear Your WordPress Cookies

You can manually clear your WordPress cookies to resolve login issues.

  1. Add a Temporary Code Snippet in wp-config.php

    • Add this line in wp-config.php temporarily:

      php
      Copy code
      setcookie(TEST_COOKIE, 'WP Cookie check', 1, COOKIEPATH, COOKIE_DOMAIN);
  2. Save and Remove

    • Save the file, then log in to test. Remove the line from wp-config.php after logging in.

By following these steps, you should be able to resolve any login page redirect or refresh issues in WordPress. If you need further assistance, feel free to reach out to our support team.


Was this answer helpful?

« Back

Problems with your site? Let Us Know 24/7

©2024 Lone Star Data Ranch - All rights reserved