A few of the most common WordPress errors include the site not loading or "Redirected you too many times" error. The Redirect error is often caused by plugins or conflicts within the .htaccess file. This article discusses possible causes to these problems and ways to fix it.

HTTPS Redirection

If you've installed an SSL on your site, you can only use it correctly by redirecting your site traffic to the secure "https" protocol:

This URL:

http://example.com

Becomes this URL:

https://example.com

This redirect can be added to the .htaccess file, or you can use a plugin to achieve the same effect.

However, the https redirect can cause a loop if it conflicts with other redirects. Below, we've highlighted few ways you can fix that.

Edit the URL in Your Configuration File

It's possible that your site does not have an SSL installed and is falsely pointing to the https protocol. While we recommend you have an SSL installed, you will need to fix this issue first.

You can change the site url by adding some code to the wp-config.php file.

You will need access to your server to edit this file. The easiest way to get there is to use the cPanel File Manager as demonstrated below:

  1. Log into cPanel
  2. Select File Manager under Files
  3. Go to the document root of your WordPress site
  4. Select the wp-config.php file and click Edit at the top of the page
  5. Add this code to the top of the file:
    define('WP_HOME','http://example.com');
    define('WP_SITEURL','http://example.com');

    (Making sure to replace "example.com" with your domain name)

  6. Save the file

Now your site will be using the HTTP instead of HTTPS for the site URL. Make sure to refresh the page.

Editing the URL in the Database

For more advanced users, you may not be willing to change your configuration. In this case, you can also perform the same procedure above in your database.

  1. Log into cPanel
  2. Select phpMyAdmin under Databases
  3. Edit the wp_options table
  4. Change the values for siteurl and home

Now, we should have achieved the same effect as above, in which your site is using the URL specified in the database.

Disable Plugins

It's also possible that a plugin is causing the redirect loop. Plugins like Easy HTTPS Redirection and Redirection create redirects for you. However, possible edits made in the .htaccess file can cause conflicts. In this case, you can easily rename or delete plugins from the back end of your site.

  1. Log into cPanel
  2. Select File Manager under Files
  3. Go to the document root of your WordPress site
  4. Open the wp-content directory
  5. Rename the plugins directory or open it to find and delete a problematic plugin (if you know which plugin was causing the problem)

If the redirect error stopped showing then this means one of your plugins was causing the error. Go through all of the plugins you're currently using and make sure they are all needed and working properly.

What if this didn't fix my problem?

If the problem persists, you should first make sure that WordPress error reporting(debugging) has been turned on. This will provide more data if you have to contact support personnel for your plugins or for your hosting service. You can contact our Live Support team 24/7 via email/chat/phone. They can assess your site and help find the cause of the problem that you're seeing.

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Did you find this article helpful?

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.