Magento 2 Error ERR_TOO_MANY_REDIRECTS

I'm new to Magento, after installation of Magento 2 community edition.I am not able to access the admin panel. I am getting below error.

This web page has a redirect loop

Error ERR_TOO_MANY_REDIRECTS

Please help me to resolve the issue. Advance thanks to all.

Solutions

In my case, I was importing an already existing Magento 2 database. The reason I was getting the error was because of the cookie domain in the database. Go to your database and look in the table core_config_data. You should see a path called web/cookie/cookie_domain. Make sure the domain matches the one you installed Magento 2 on. Ex: If you installed Magento 2 on local.dev/<magento-root> the entry in web/cookie/cookie_domain should be local.dev.

I had same problem manipulating databases, this answer resolved my problem ERR_TOO_MANY_REDIRECTS :

https://magento.stackexchange.com/a/84756/50635

To correct this, please try to set Use Secure URLs in Admin to true, in System -> Config -> General -> Web.

Or with database access, change following record value to 1 :

SELECT * FROM core_config_data where path like '%web/secure/use_in_adminhtml%';

I refer to your magento store domain as example.com in this post. If its www.example.com or store.example.com or whatever, substitute accordingly.

I just ran into this issue and here are the specifics. Magento 2 2.2.2 install. I had configured the secure base url's to http://example.com/ initially and as I was getting my letsencrypt ssl cert configured on my server, I thoughtlessly enabled the option to redirect all http traffic to https.

This wouldn't be an issue normally, but Magento can be a bit temperamental. I visited my storefront and my SSL is working correctly, but as I attempted to access admin, I received the "ERR_TOO_MANY_REDIRECTS" notice and a failed page load.

I see several ways to fix this issue but the one that worked for me first attempt was this.

  1. SSH into server.
  2. cd to your magento install dir.
  3. run the following command:
    • php bin/magento config:show

view the output and look for web/secure/base_url, web/secure/base_link_url & web/secure/use_in_adminhtml.

These values should be configured with https://example.com/ for the url options and web/secure/use_in_adminhtml = 1.

If they are not, you can run the following commands from your magento install directory to update your configuration.

  1. php bin/magento config:sensitive:set web/secure/base_url https://example.com/
  2. php bin/magento config:sensitive:set web/secure/base_link_url https://example.com
  3. php bin/magento config:set web/secure/use_in_adminhtml 1
  4. php bin/magento cache:clean

After that, visit your admin page, clear your browser cache, reload, and you should now have your access back! with SSL support.

First step I would take after that is to log back into the admin portal and verify your configuration options to ensure you arent going to run into any other unexpected problems.

I hope this help!

Here are some Magento resources to help guide you:

Set Configuration Values

Other Configuration Paths Reference

Sensitive and System Specific References

Similar questions

ERR_TOO_MANY_REDIRECTS
When I trying to open my magento2 live site it showing error www.store.vidya.sg redirected you too many times. Try clearing your cookies. ERR_TOO_MANY_REDIRECTS". I have clear the browser catch and cookies. But still not open. Admin panel also not open.
How to resolve "This webpage has a redirect loop" ERR_TOO_MANY_REDIRECTS
Kindly assist with my users admin site which previously was displaying There has been an error processing your request - but now the error message when viewed is: This webpage has a redirect loop ERR_TOO_MANY_REDIRECTS https://www.evoneng.com/store_manager/admin/index/index/key/05b032166f4000205779788af46612659fc16ca2312d94e56482590428dfb534/ Pleas...
M2 Catalog Search: Getting ERR_TOO_MANY_REDIRECTS when trying to access a 'search term' assigned to an URL
I am trying to fine tune my catalog search. From the backend I've assigned, for example, to the following search term 'iphone camera' the following URL: https://example.com/catalogsearch/result/index/?brand=48&mobile_camera_type=260%2C261&q=iphone+camera Now when I am entering the search term in the frontend, I am unable to access the afore...
"ERR_TOO_MANY_REDIRECTS" when turn on Cloudflare CDN possible .htaccess file issue
When I tried to turn on Cloudflare CDN, my site will get "ERR_TOO_MANY_REDIRECTS" error page (the site loads fine if I don't turn on Cloudflare CDN). I checked with the hosting provider, seems like the all the DNS are set correctly. They suspected that might be something in the .htaccess file causing redirect loops. I'm not sure which line might ca...
Magento Error "Order saving error: SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction" at backend
Magento showing error Order saving error: SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction, on placing order at backend. Still Order has been saved with status "pending" and then if I generate invoice, this does not show MRP in invoice PDF. So I need to cancel this order and have to reorder this, this time...
Magento 2 getting error: ( ! ) Parse error: syntax error, unexpected 'T_PAAMAYIM_NEKUDOTAYIM' (T_STRING), expecting ')'
While installing custom module at server i'm getting this error at frontend. My php version at server is 5.6. But same module at my localhost with php 7.0 version is working fine. I'm not able to understand this why this error showing. The error line code is below: Any single help would be appreciated. Thanks in advance.

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.