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

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.

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.

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

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á

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