Fix redirect loop error in WordPress
This error indicates that something is causing too many redirects and the server can't complete the request. This is typically caused by incorrect domain settings, but it can also be caused by third-party services like Cloudflare.
The error messages as seen in various browsers:
- Google Chrome
This page isn't working example.com redirected you too many times. Try clearing your cookies. ERR_TOO_MANY_REDIRECTS
- Mozilla Firefox
The page isn't redirecting properly Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
- Microsoft Edge
Hmmm...can't reach this page
Note: Always back up your WordPress site before modifying any files.
- Connect to your website with an FTP client.
- Edit the wp-config.php file located in the remote directory where your WordPress site is located.
- Update or add the following lines below define('WP_DEBUG', false);:
define( 'WP_SITEURL', 'http://example.com'); define( 'WP_HOME', 'http://example.com');
- WP_SITEURL is the Site Address (URL) in General Settings.
- WP_HOME is the Site Address (URL) in General Settings.
- Protocol should be either http or https, but never both.
- Sub-domain should be with www or without www, but never both.
- Domain can be different if the site requires it(e.g. http://example.com/blog).
- Save the changes.
- Clear your browser cache.
- Navigate to your site in a browser to test if the error is gone.
- If you're using Cloudflare to manage SSL traffic with their Flexible SSL product, find more details on their support page.
- In some cases an SEO or redirect plugin can cause the error, in which case read Troubleshoot and fix WordPress plugin errors.
- For more information about our premium support for WordPress, visit the WordPress Premium Support Catalog.