WebHostingPeople Blog

  • Domains
    • Shared Hosting

  • Cloud VPS
  • Servers
    • Client Area Login

How Can We Help?

How to Fix Too Many Redirects Error in WordPress

You are here:

 

WordPress is a reliable and secure platform to utilize. However, there can be some issues due to improper configuration or external factors. The programming language employed by WordPress is fairly stable. However, external elements such as plugins and themes can complicate WordPress as they may become incompatible. As a result, your website may go down and you might encounter an error like the one described below:

For instance, on Firefox, this error message will be displayed as follows:

“The page is not redirecting correctly. Firefox has detected that the server is redirecting the request for this address in a way that will never complete.”

This means that there are excessive redirects or your website is trapped in a loop.

 

What causes this error?

Typically, this error can occur due to improper configuration. WordPress itself uses a form of redirection when creating new posts and pages. Another possibility is a programming flaw.

 

How to resolve this issue?

During the setup of your website, you have the option to set your URL with or without the “www” prefix.

For example:

1) http://www.domain.com

2) http://domain.com

 

If your site is configured incorrectly, meaning that there is an error in the URL, it may lead to excessive redirects. To fix this error, follow these steps:

1) Log in to the WordPress admin panel

2) Navigate to “Settings” in the left column of the screen

3) You will see the URL text boxes labeled “WordPress Address” and “Site Address.”

Too Many Redirects

 

4) Restore the URLs to their original configuration. Add or remove the “www” prefix for both URLs, depending on how you want your domain to be addressed.

Too Many Redirects

 

5) Once the changes have been made, click on “Save Modifications”.

 

If you are unable to access this basic setting, especially in a multisite network, you can add the following code to your wp-config.php file:

# define(‘WP_HOME’,’http://www.domain.com’);

# define(‘WP_SITEURL’,’http://www.domain.com’);

These two lines should be placed above the following line:

/* That’s all, stop editing! Happy blogging. */

 

Redirection caused by a Plugin

If the above solution does not fix your problem, please check your plugins. Furthermore, you should identify which plugin is causing the issue. If the problem arises after installing or updating a plugin, you can simply revert the recent changes made by that specific plugin. This should resolve the issue.

If you are not sure which plugin is causing the error, you can deactivate all plugins and try to load your website. You can also delete the specific plugin that is causing the error.

You can do this in your WordPress “Plugins” section.

Too Many Redirects

 

Disabling your .htaccess file

Sometimes, your htaccess file can cause your website to enter into a redirection loop. To resolve this issue, you can disable the .htaccess file.

1) Access File Manager through your hosting control panel.

2) Select your .htaccess file, right-click it, and choose Rename.

3) Rename your .htaccess file, for example, to .htaccess-back

 

Clear Your Cache and Cookies

Sometimes, you may need to clear your browser’s cache and cookies. If you have made significant changes to your site, they may not be visible until you clear them. Therefore, it is recommended to clear your browser’s cache and cookies to see the modifications you have made.

 

That’s how you can fix the excessive redirects error in WordPress. If you need any further assistance, please contact our support department.

 

Post Your Comment