0

I'm facing one of the known issue that is 127.0.0.1 redirected you too many times and tried to solve it by following as per the solutions given but those are all not working for me:

Magento 2 : Too many redirects in admin login screen

Magento 2 Admin ERR_TOO_MANY_REDIRECTS

I'm not sure whether this problem is due to improper configuration.

Could anyone please guide me to rectify this issue?

enter image description here

3
  • Have you checked "cookie_domain" within the "core_config_data" table?
    – BigDaddyL
    Commented Dec 4, 2019 at 11:31
  • Should I enable It or I have to set it disable?
    – MagentoDev
    Commented Dec 4, 2019 at 11:48
  • Found a good answer! this worked for me solution
    – najene
    Commented Mar 1, 2021 at 7:30

1 Answer 1

5

Try to run below command once

php bin/magento config:set web/secure/use_in_adminhtml 0
php bin/magento config:set web/cookie/cookie_domain ''
php bin/magento setup:upgrade
php bin/magento cache:clean
php bin/magento cache:flush

Hope this will help you!

20
  • I have run the commands as you suggested but still getting the same error.
    – MagentoDev
    Commented Dec 5, 2019 at 7:09
  • You get this issue after adding admin details and when you press on login button ? Commented Dec 5, 2019 at 7:44
  • 1
    Yes, I have run this command, php bin/magento config:set web/cookie/cookie_domain, but got error "Not enough arguments (missing: "value")". So I have manually find out the path in database and given the full path as localhost/sitename
    – MagentoDev
    Commented Dec 5, 2019 at 10:01
  • 1
    Yes, finally it worked!!! Thanks
    – MagentoDev
    Commented Dec 5, 2019 at 11:02
  • 1
    You're welcome Buddy. :) Commented Dec 5, 2019 at 11:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.