Hello,
I have a development website:
https://dev.domain.com/...
and a live website:
https://domain.com/...
After testing and do modifications, transfer the files from the dev-website to the live website.
But sometimes are snippets only using on the live-website and vice versa, like this code:
<@ meta name="robots" content="index, follow" @>
I want 'enable' this snippet only on the live-website.
Is there a variable that can find the (sub)domain (dev.domain.com), so it can used in a if...then-structure, similar like this?
<@ if @{ domain } = "domain.com/*">
<# show meta-field robots #>
<@ meta name="robots" content="index, follow" @>
<@ end @>
Reading the docs, about (reserved) variables and Linking Files and Pages, but can't find a way request the root-url.