Skip to content

Instantly share code, notes, and snippets.

@steveosoule
Last active August 29, 2015 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steveosoule/9982895 to your computer and use it in GitHub Desktop.
Save steveosoule/9982895 to your computer and use it in GitHub Desktop.
Miva - Get Current Subdomain
<mvt:assign name="g.subdomain" value="substring( s.http_host, '0', (indexof( '.', s.http_host, '1') - 1) )"/>
&mvte:global:subdomain;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment