Home Website TutorialsWordPress How to fix error: website redirects too many times in WordPress

How to fix error: website redirects too many times in WordPress

by Thạch Phạm
Published: Last Updated on
A+A-
Reset

In the process of using the website, sometimes you get an error when accessing the website, like “Website redirects too many times” (Too Many Redirects). Most of this error is because you configure the wrong path or do the redirect configuration at the server/hosting incorrectly, there is also a case that the domain you use at the same time has many pairs of Nameserver of many providers.

Too Many Redirects 1

To fix this error, we will do the following:

Access to File Manager & edit the wp-config.php file and add the following code, right after <?php

Note: replace example.com with your domain.

define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');

If your website has www.domain configured, add the following to correct the format:

define('WP_HOME','http://www.example.com');
define('WP_SITEURL','http://www.example.com');

Next, go to Redirect in cPanel to ensure you are not configuring the redirect.

Too Many Redirects 2

And proceed to disable the .htaccess file by renaming the .htaccess file to htaccess.bak .

Too Many Redirects 3

After you have done the above steps, go anonymously, use 3G/4G, clear the browser cache to ensure there is no cache.

Wishing you success!

Đánh giá

Tham gia nhóm hỗ trợ Server - Hosting

Tham gia nhóm Hỗ trợ Server - Hosting & WordPress để cùng nhau hỏi đáp và hỗ trợ các vấn đề về WordPress, tối ưu máy chủ/server.

Tham gia ngay

Bài viết cùng chuyên mục

AZDIGI – Không chỉ là đơn vị hàng đầu trong lĩnh vực Web Hosting và Máy chủ, chúng tôi mong muốn mang lại những kiến thức bổ ích nhất và luôn cập nhật thường xuyên cho cộng đồng người đam mê thiết kế website, công nghệ,…

Vui lòng không sao chép nội dung nếu chưa xin phép. Designed and Developed by PenciDesign