You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have to virtual hosts: mysite.com and www.mysite.com and I would like to configure the template to perform at max. just one redirect so that I end up in https://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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
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.comandwww.mysite.comand I would like to configure the template to perform at max. just one redirect so that I end up inhttps://www.mysite.comLooking at templating I cannot find the way of determine whether the
$hostvariable 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
BetaWas this translation helpful?Give feedback.
All reactions