Get a subdomain of a URL using ColdFusion -
how can subdomain of url using coldfusion?
for example, had following url:
how 'support'?
is there built in function this?
here's basic idea:
<cfset domain = cgi.server_name> <cfset subdomain = ""> <cfif listfirst(domain, ".") neq "foo" , listfirst(domain, ".") neq "www"> <cfset subdomain = listfirst(domain, ".")> </cfif>
Comments
Post a Comment