I have the base route "/"
like http://example.com
and I want to redirect this route to http
if someone calls https://example.com
. What I am doing wrong? Do I have to put the redirect option somewhere else? THANKS!
In my routing yml I have:
my_website:
resource: "@MyWebsiteBundle/Controller/"
type: annotation
prefix: /
defaults:
route: home //<-- This is my name of the route "/" in my controller
permanent: true