I have six domains pointing to the same content on a GoDaddy hosting account. What I'd like to do is offer the site 'skinned' for each domain. The only changes are one meta tag, 'masthead' graphics, the domain name, and a link tag to the appropriate CSS stylesheet.
I thought I could do this with SSI, but I can't get #IF to work. Here's what I tried:
<!--#if "&&SERVER_NAME&&" hasstring "domain_one" -->
<!-- stuff here for domain one -->
<!--#elif "&&SERVER_NAME&& hasstring "domain_two" -->
<!-- stuff here for domain two -->
<!--#else -->
<!-- stuff here for domain three -->
<!--#endif -->
However, the page crashes and when I inspect the page source in my browser the last thing there is the markup that immediately preceded the first #IF directive.
Go Daddy's server correctly parses <!--#printenv -->, so I assume that it's happy for SSI in general.
Any ideas what I'm doing wrong? Also, any other method (short of keeping one copy of the website per domain) would be welcome.
All help gratefully received,
Geoff

LinkBack URL
About LinkBacks





Reply With Quote
Bookmarks