SSI conditional based on Document URI

Snippett of code based on the uri in the document

<!--#if expr="($DOCUMENT_URI = /brisbane/) || ($DOCUMENT_URI = /sydney/) || ($DOCUMENT_URI = /melbourne/) || ($DOCUMENT_URI = /adelaide/) || ($DOCUMENT_URI = /perth/)" -->
CONTENT GOES HERE
<!--#else -->
OTHER CONTENT HERE
<!--#endif -->

Latest posts by Rae Allen (see all)

1 thought on “SSI conditional based on Document URI

  1. Pingback: XSSI if and else statements | RaeAllen.net

Leave a Reply

Your email address will not be published. Required fields are marked *

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