How To Fix The Redirect Loop Error In WordPress

Usually, WordPress is great. This platform makes it easy to run everything from a simple blog to a sprawling online store. 

But WordPress can be frustrating sometimes. For example, you might run into the redirect loop error when you try to log into your site.

Don't worry – the redirect loop error is a common issue, and most of the time it's easy to fix.

The problem is that your browser is confused. The web address you're attempting to visit points to two or more possible locations. Your browser bounces back and forth between these different options until it finally gives up and displays the 310 error, as shown above. You may be presented with a general 404 “Page Not Found” error instead of the more specific 310 error.

One of these solutions should fix the issue for you:


1. Upgrade To A Dedicated IP

While your domain name is what everyone sees, the real location of your website is your IP address. Whenever someone types your domain name into the address bar of their browser, it automatically connects to the IP address that hosts your site.  

There is generally only one site connected to an IP address, but in some situations multiple sites use the same IP address. This can cause the redirect loop error. In that case, paying for a dedicated IP address would immediately clear up the issue.


2. Clear Your Cookies

You might not need to pay for a dedicated IP address to fix the redirect loop error. There's a way to solve this problem without abandoning your shared hosting service. You can have your cake and eat it, too.

Actually, this isn't about cake – it's about cookies. When you visit a site, your browser stores cookies to help it load the site faster later.

If your browser has stored cookies from two different sites that share the same IP address, that can lead to the redirect loop error. To clear your cookies, go to the “History” section of your browser's settings.

But that's just a one-time fix. To set it up so that your cookies are automatically cleared each time you visit your blog, use an FTP application like FileZilla to access your blog's wp-config.php file and add the following code:

define('ADMIN_COOKIE_PATH', '/');

define('COOKIE_DOMAIN', '');

define('COOKIEPATH', '');

define('SITECOOKIEPATH', '');


3. Restore The .htaccess File

A corrupted .htaccess file can also cause the redirect loop error. The .htaccess file – which stands for “hypertext access” – allows you to control the behavior of the directories on your site. 

Use your FTP application to access your site's root folder. You should see the .htaccess file in there. Save a backup of the .htaccess file, then delete it. Next time you visit your site, WordPress will have automatically created a new .htaccess file.

Try logging into your site again to see if this worked. 


4. Make Sure Your Home And Site URLs Match

Another potential cause for the redirect loop error is that your home and site URLs are different. Admins often accidentally use “” for their home URL and “” for their site URL, or vice versa. If you use “www” with one, you need to use it with the other.

You can either edit your home and site URLs in the General Settings section of your WordPress dashboard (the home address is called the “WordPress Address” in the dashboard) or edit them directly in your wp-config.php file with this code:

define ( 'WP_HOME', 'http: //');

define ( 'WP_SITEURL', 'http: //');


5. Disable All Your Plugins

When all else fails, one last thing to try is disabling all of your plugins.

Does your site work now? If so, the problem was probably that two of your plugins were interfering with each other. Now, go back and enable your plugins one by one to see which specific plugins are causing the issue.


Now that you've read the solutions in this article, are you still having trouble with the redirect loop error? Let us know in the comments section below.

How To Fix The Redirect Loop Error In WordPress
4.5 (90%) 2 votes