This problem looks like the case of using http://localhost as domain as found the issue: magento 2 Error ERR_TOO_MANY_REDIRECTS

But in my case the base-url is: http://m2test_bd.mac0004.isaac.local/

When I make a clean install on this URL and open (in Chrome of Firefox):


I get redirected to:


And get the notice:

The m2test_bd.mac0004.isaac.local page isn’t working

m2test_bd.mac0004.isaac.local redirected you too many times.


Can anyone tell me what I'm doing or is going wrong?


2 Answers 2


It seems that the Magento 2 Admin can't handle the use of an underscore _ in the URL.

The frontend has no problems with it and a cookie has been planted there with the correct domain - no sweat.

The backend, however, appears to handle this differently and trips over the underscore in the domain name. No cookie had been planted at the backend either, probably triggering the same problem as the `http://localhost/' problem (magento 2 Error ERR_TOO_MANY_REDIRECTS)

Using the URL http://m2dev.mac0004.isaac.local/ had no problems.


You remove sub dir from var/cache directory

rm -R var/cache/*

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.