XSSI if and else statements –

XSSI if and else statements

if statement

<!--#if expr="\"$HTTP_REFERER\" = /" -->
Content relevant to that site

<!--#elif expr="\"$HTTP_REFERER\" = /" -->
An ‘or if’ statement

<!--#else -->
this else statement is used for all other instances

<!--#endif -->
finalise the code with an ‘end statement’

More complex if statement – SSI conditional based on document URI

This depends on the URI of the document being referenced.


Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.