I have a symfony2 application.
On the prod server I want all my routes to go via https, while in dev I want to be able to use http. How do I achieve that with symfony2 a
My first solution works fine, yet one should take care to not overwrite one own's routes in the routing_dev.yml
. At the end of the file, I had
_main:
resource: routing.yml
so all my bundle route was changed back to the https-scheme. Ordering the entries, so that my custom entry comes last resolved the issue.