Redirect to HTTPS and WWW #437
Unanswered
CarlosTorrecillas
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have to virtual hosts:
mysite.com
andwww.mysite.com
and I would like to configure the template to perform at max. just one redirect so that I end up inhttps://www.mysite.com
Looking at templating I cannot find the way of determine whether the
$host
variable starts with www. or not in order to apply one or other rule. I wonder if there is any kind of function such as contains, intersect or something similar that allows me to achieve what I want.Thanks
Beta Was this translation helpful? Give feedback.
All reactions