XxL's Góc riêng

Tôi là XXL – Người lớn nhất quả đất

How to fix err_too_many_redirects wordpress 100%

1 min read

This error seems to become more and more popular nowadays:


I’ve tried a lot of ways and these are steps you should do to solve this case.

Step 1: Open file wp-config.php

You can open directly on your cpanel or direct admin or via FTP to edit.

Step 2: Add the following code

define('FORCE_SSL_ADMIN', true);
if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')

Remember to replace yourdomain.com to your domain.

The code should be added right below the first line.

Step 3: Save the file and Refresh your page.

That’s all.

Happy Blogging!