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.
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.