Skip to content

Magento Frontend ERR_TOO_MANY_REDIRECTS after fresh install

I am new to Magento this is the first time installing it but I have been stuck on this issue for two days now.

I have windows 10 OS, and Laragon for apache and MySQl, Laragon is just like XAAMP no big difference.

I installed Magento 2.4 using composer

composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition magento2New

Then I followed the exact tutorial in this link. And everything mentioned in the tutorial like errors and messages appeared to me and solved it like mentioned in tutorial.

Finally when done I open frontend URL http://alaa.magento2new.test/ and it gives me the Too many redirects error, so I tried http://alaa.magento2new.test/admin and it worked like a charm and logged in to admin dashboard successfully.

I tried too many things nothing worked, like finally I enabled SSL in apache and Magento and still the same problem, and I almost tried every solution in this question with no luck, and many other threads online.

This is the current config in my db after changing and modifying from the fresh install
enter image description here

My final thoughts now is installing a virtualbox with Linux image or use docker container, but I would really be happy if I can run magneto with my current environment.