How to fix the error "too many redirects" in your wordpress site


The following tutorial provides information about the Too Many Redirects error in WordPress. It also includes screenshots và possible solutions lớn the problem.

Bạn đang xem: How to fix the error "too many redirects" in your wordpress site

Why Am I Experiencing This Type of Error?

WordPress is a complex content management system that is configured in a way that it cannot operate under two different URLs. In other words, there can be only one website address lớn choose from when it comes to lớn hosting a single WordPress blog.

The message Too Many Redirects is a comtháng WordPress error (also referred lớn as a redirect loop), which usually occurs when the URL setting is configured lớn the wrong website address. A faulty .htaccess tệp tin or a badly configured plugin can also cause your site khổng lồ go into an infinite loop.

What Does a Too Many Redirects Error Look Like?

Internet browsers display and interpret the error message differently. The screenshot hereunder illustrates how the error Too Many Redirects looks in Google Chrome.


In Mozilla Firefox, the error message will look pretty similar khổng lồ the one attached below:


How Can I Solve sầu the Redirect Loop?

Based on our experience with WordPress, we can offer you the following four possible fixes:

Solution #1: Cheông xã the URL settings

in your WordPress admin panel

The first thing you need lớn vì chưng is kiểm tra the URL settings of your website in your WordPress dashboard. To perkhung a URL check:

Sign into lớn your WordPress trương mục as Administrator.Once logged in, navigate to the Settings page và clichồng General Settings.When on the General Settings page, you will notice there is a danh mục of settings & available options. Double-kiểm tra and ensure that both, the WordPress & Site addresses, match.


If there is a mismatch between the two URLs (e.g. the WordPress Address is set to, but the Site URL points lớn, then you will need to lớn make sure that both website addresses are identical.

in your MySQL database

Another way to lớn perkhung a website address kiểm tra is through the built-in phpMyAdmin4 tool. Launch phpMyAdmin4 in a web browser and enter your database credentials.

After a successful login, find the table labeled wp-options. Cliông xã the selected table to lớn view its contents.


Once in the editor, locate the rows siteurlhome. Verify the URL details in each of the two rows. The name of the siteurl address must match the home URL exactly.


in your main configuration (wp-config.php) file

wp-config.php is the place where WordPress stores its database connection settings. In the main WordPress configuration file, users are also able lớn manually specify their URL location. This is one of the most preferred methods, since it does not require direct access to the admin panel & phpMyAdmin.

Xem thêm: Làm Cách Tạo Tài Khoản Quảng Cáo Facebook Cá Nhân, Làm Cách Nào Để Tạo Tài Khoản Facebook

If you have phối the trang web URL manually in your WordPress config, open up the file wp-config.php in your main domain directory và check your script for the following two global variables – define( ‘WP_HOME’, ‘http://www.mytên miề’ ); & define( ‘WP_SITEURL’, ‘’).


Please verify that the WP_HOME address matches the WP_SITEURL hostname in the code.

Solution #2: Disable your plugins

Another way lớn resolve the error Too Many Redirects in WordPress is by deactivating the plugins that are currently active sầu for your trang web.

By mặc định, WordPress stores all its plugin-related data in a sub-thư mục called plugins. The plugins directory is usually found in the wp-content folder of every WordPress instance.


Right-clichồng the plugins directory & press Rename. Give sầu your folder a new name (e.g. plugins_disabled) and cliông chồng the green check mark. Wait a couple seconds for our system khổng lồ process your request.

After your plugins have been successfully disabled, visit your web page in a browser & re-kiểm tra your WordPress application. If the redirection loop is no longer present on the page, it means that the problem is plugin-related.

To find out which plugin is causing the issue, rename the plugins directory baông xã to lớn plugins and start deactivating your extensions one-by-one until you find the problematic one.

Solution #3: Disable your default .htaccess file

If you have tried all of the above solutions and none of them has helped so far, you can temporarily disable WordPress’s main .htaccess tệp tin. The file in question is located in the root directory of WordPress và can be easily recognized by the dot sign in front of the document.


The renaming process is pretty easy lớn follow. All you need khổng lồ vì chưng is right-cliông chồng on the .htaccess file & then hit the Rename button. Remove the dot from your file name và save sầu the submitted changes.

Launch your favorite Internet browser and enter your website’s URL in the address bar.