eZ Community » Forums » General » ez_templates: how can i detect the...
expandshrink

ez_templates: how can i detect the used protocol

ez_templates: how can i detect the used protocol

Friday 28 January 2011 1:26:14 pm - 2 replies

i have to differentiate if a request called http or https protocol .

http://www.myurl.com/requested/site

or

https://www.myurl.com/requested/site

exist there a system variable to get this informations

Friday 28 January 2011 6:51:25 pm

Hi cloud stone,

You could use the server template operator from the swark extension.

{if server('SERVER_PORT')|eq(443)}  
 HTTPS CONTEXT
{else}
 HTTP CONTEXT
{/if}

lg

Stefan

Tuesday 01 February 2011 2:09:23 pm

thx,

good workaround!

for me, the tread is solved happy.gif Emoticon

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from