I transfer my application from https://mywebsite.com
( 1 ) to https://otherwebsite.com
( 2 ) The application is host on different servers.
The code below works ( 1 ), the scheme of the generated URL https
. The same code on ( 2 ) generates a URL with a http
scheme
$filterUrl = $this->router->generate('liip_imagine_filter', $params, UrlGeneratorInterface::ABSOLUTE_URL);
Route definition
<route id="liip_imagine_filter" path="/media/cache/resolve/{filter}/{path}" methods="GET">
<default key="_controller">%liip_imagine.controller.filter_action%</default>
<requirement key="filter">[A-z0-9_\-]*</requirement>
<requirement key="path">.+</requirement>
</route>
The classic use of the Symfony router, do you have any idea why ( 1 ) I received https
and on ( 2 ) I received http
?
source
share