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:
define(‘WP_HOME’,’
define(‘WP_SITEURL’,’

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);
if ( SITECOOKIEPATH != COOKIEPATH ) setcookie(TEST_COOKIE, ‘WP Cookie check’, 0, SITECOOKIEPATH, 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’);

Nguồn: https://3dcoffeeshop.com/

Xem thêm bài viết: https://3dcoffeeshop.com/category/cong-nghe

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','http://your-site.com');

    define('WP_SITEURL','http://your-site.com');

    try this method guys

  2. Nonprofit WordPress Theme https://visualmodo.com/theme/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: http://your-site.com/wp-admin/maint/repair.php and if you have an SSL certificate installed, you would visit https://your-site.com/wp-admin/maint/repair.php. Do not forget to remove line when database is fixed!

  4. Click Show More to see all codes.
    Try to use recommended hosting accounts: http://www.lexen.net/recommended-hosting-company/
    By the way I offer hosting service as well if interested add me on FB: fb.com/juri.fab 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 *