How to Fix Error Too Many Redirects Issue in WordPress Try clearing your cookies on WordPress

I use this service for my website register and try it:
If you are not able to login to your WordPress dashboard or you have any other error like database connection error then you can try following:

Login to your hosting account go to file manager and locate your website folder. Usually all companies use cPanel for this.
Then locate file wp-config.php and click edit and add flowing stings:

Click save and try to login.
If not work add also this stings:
define(‘ADMIN_COOKIE_PATH’, ‘/’);
define(‘COOKIE_DOMAIN’, ”);
define(‘COOKIEPATH’, ”);
define(‘SITECOOKIEPATH’, ”);

If still not working then:
Cookies Blocked Error “Permanent” Fix

Now, the first solution doesn’t remove the error. However, this solution will:

Access your Functions.php file (use an FTP tool such as Filezilla or CyberDuck, or go through the file manager in your hosting cPanel)
Add the following code to the bottom of the functions.php file:
setcookie(TEST_COOKIE, ‘WP Cookie check’, 0, COOKIEPATH, COOKIE_DOMAIN);
Upload/Save your Functions.php file

If still not works try to:
Add the following line of code to the FUNCTIONS.PHP file in the wp-content folder, for the theme you are using:

// Remove Canonical URL functionality (as per URL:
remove_filter(‘template_redirect’, ‘redirect_canonical’);


Xem thêm bài viết:

Author: admin

6 thoughts on “How to Fix Error Too Many Redirects Issue in WordPress Try clearing your cookies on WordPress

  1. define('WP_HOME','');


    try this method guys

  2. Nonprofit WordPress Theme Nonprofit WordPress theme is a powerful responsive charity / donations / foundation / fundraising premium WordPress theme packed with features designed for Charity, Church, NGO, Fundraising and more. 🆘💁‍♀️🌎❤️

  3. To fix Database error you should:
    Add this line:
    define( 'WP_ALLOW_REPAIR', true );
    to your wp-config.php file, which is located in the root of your install;
    Once you have added the line mentioned above, you can visit the database repair page: and if you have an SSL certificate installed, you would visit Do not forget to remove line when database is fixed!

  4. Click Show More to see all codes.
    Try to use recommended hosting accounts:
    By the way I offer hosting service as well if interested add me on FB: and drop me message like: Hi , I need WordPress #hosting because I'm getting to many messages and not able to reply to everyone.

Leave a Reply

Your email address will not be published. Required fields are marked *