I'm migrating an old application to Symfony, and for SEO reason need to keep part of it on HTTP and part on HTTPS.
I'am using schemes config key in routing.yaml:
route_name:
path: ...
schemes: [HTTP]
The problem I'm having is that Symfony redirects from HTTPS to HTTP via HTTP 301 Moved Permanently, but I would like it to redirect just temporarily because we are planning to fully switch to https in next year.
Is there a way to change the response code? Or is there a better way to keep part of the application on HTTP and part on HTTPS?