Last active
August 29, 2015 13:58
-
-
Save steveosoule/9982895 to your computer and use it in GitHub Desktop.
Miva - Get Current Subdomain
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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