If you encounter the error message “Too Many Redirects” on your WordPress site, it can be a frustrating experience. This error, also known as a redirection loop, occurs when a Web page is continually redirected to itself, or when two pages keep sending each other back and forth. This problem can greatly affect the accessibility of your site. Fortunately, in most cases it is easy to correct with a few targeted steps.
Check your URL settings in WordPress
A common cause of Too Many Redirects error is a discrepancy in the URL settings within WordPress. Follow this simple check:
- Log in to your WordPress Dashboard.
- Go to “Settings” and choose “General.
- Check the “WordPress address (URL)” and “Site address (URL). Both URLs should be identical, unless you have installed WordPress in a subdirectory or have other reasons to configure them differently.
If you cannot access your WordPress Dashboard because of the error, you can also change these settings by editing the wp-config.php file:
define(‘WP_HOME’,’http://voorbeeld.com’);
define(‘WP_SITEURL’,’http://voorbeeld.com’);
Replace http://voorbeeld.com with your actual site URL.
Check your .htaccess file
A corrupt or improperly configured .htaccess file can also lead to a Too Many Redirects error You can correct this as follows:
- Connect to your website via FTP(for example: Filezilla) or file manager and go to the root directory where WordPress is installed.
- Find the .htaccess file, backup this file, and then delete it from your server.
- Return to your WordPress Dashboard and navigate to “Settings” > “Permalinks” and click “Save Changes. WordPress generates a new .htaccess file.
Don’t know what FTP is? Click here to go to the article where we explain to you what FTP is.
Specific plugins
Plugins that change how your WordPress admin works, such as those that rename the wp-admin URL for security purposes, can sometimes cause problems with too many redirects. To troubleshoot this issue:
- Deactivate the specific plugin. Use FTP or your hosting account’s file manager to navigate to the wp-content/plugins directory and rename the directory of the specific plugin that may be the cause. This temporarily disables the plugin.
- Test your website. After the plugin is deactivated, check your website to see if the problem with the redirects is resolved
Caching
Caching can sometimes cause a Too Many Redirects error, especially after changes in your site settings or after migrations. To solve cache-related redirection problems:
- Empty your browser’s cache. Different browsers have different methods, but the option can usually be found in the settings under “Privacy” or “History.
- Empty the cache of WordPress plugins. If you use a caching plugin, such as W3 Total Cache or WP Super Cache , go to the plugin’s settings and choose the option to empty the cache.
- Empty your server’s cache. Some hosting providers offer server-level caching. You can usually clear the cache through your hosting control panel.
Check for server configuration problems
If none of the above steps work, the problem may lie with the server configuration. This is especially possible if your site has recently changed servers or if there have been server updates. Contact your hosting provider; they can often tell immediately if there are configuration issues causing redirection errors.
How can you avoid this?
While it is important to know how to fix the “Too Many Redirects” error, it is even more important to take steps to avoid this error in the first place. With a well-maintained website, these errors can be avoided. Here are some tips that can help:
- Regular Updates: Such as the WordPress core, themes and plugins.
- Technical health checks: Conduct regular technical checks to keep your website in top condition.
- Professional help:
Do you have more questions or can’t figure it out? If so, please contact us.
Receive more tips? Then subscribe to our newsletter.