logo

New Response

« Return to the blog entry

You are replying to:

  1. I've done something like that with @GetHTTPHeader("Host") and computing things like CSS. I had a customer that had two seperate domains that catered to the same business but under different sub-companies. The person wanted a look and feel for their website to be specific per domain. Instead of running two seperate sites, we simply loaded the css that made the changes that we were looking for based on the domain.

    ie:

    domain := @GetHTTPHeader("Host");

    @If(domain = "www.domain1.com"; "domain1.css"; domain = "www.domain2.com"; domain2.css; "general.css")

    Now, instead of managing two sites, you're managing one CSS per site in the same container - cost benefitial for hosting and time saving for administration/maintenance!

    -Chris

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: