Redirect http to https with Symfony6 and heroku
I’m running a Symfony 6 app on Heroku. I try to perform a redirect from http to https but all I tried does not work.
Due to the heroku reverse proxy, writing the redirection to the .htaccess creates an endless redirect loop.
So I try this : https://symfony.com/doc/current/deployment/proxies.html#but-what-if-the-ip-of-my-reverse-proxy-changes-constantly
No endless loop but my HTTP requests are still not being redirected.