My entire application must be accessible via HTTPS, Vhost is configured correctly, and when I call any of my application pages with the HTTPS prefix, it responds correctly.
However, when I try to access the page through the generated link in my application. it always points to a regular HTTP link.
At first, I tried to redirect all traffic to HTTPS using the .htaccess file. Spent a few hours trying to use every redirection method I could find on the network, but for some reason I always had an endless redirect cycle.
Now I'm trying to approach this in a different way: direct link building in HTTPS. All my links are created using the function URL()provided by the branch bridge.
Pretty easy to set up with symfony
But I could not figure out how to do this with Silex. Is there an easy way to change the routing scheme in Silex to force every link to be generated using the HTTPS prefix?
source
share