cruisin
Posts: 31
|
Posted: 01/12/2009, 4:01 AM |
|
I have a site which is aliased by several domains. I'm trying to create a dynamic header based on the domain that is selected. It's not quite working.
<%
Function header_BeforeOutput(Sender) 'header_BeforeOutput @1-02A5E4A7
'Custom Code @2-73254650
' -------------------------
Dim header
Dim PathInfo
PathInfo = Request.ServerVariables("SERVER_NAME")
Select Case PathInfo
Case "www.domain1.com"
TemplateFileName = "header.html"
Case "www.domain2.com"
TemplateFileName = "header1.html"
Case "www.domain3.com"
TemplateFileName = "header2.html"
Case "www.domain4.com"
TemplateFileName = "header3.html"
Case Else
TemplateFileName = "header.html"
End Select
' -------------------------
'End Custom Code
End Function 'Close header_BeforeOutput @1-54C34B28
%>
It's picking up the domain information, it's just not doing anything with it. Suggestions?
|
|
|
Oper
Posts: 1195
|
Posted: 01/12/2009, 7:24 AM |
|
if you using an include dont think you could alter that simple.
i will suggest a simple way:
create a Simple header Include
and that Include should load the HTML from a Database depending on Domains
if just and image? more simple bur same approach
_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)
http://www.PremiumWebTemplate.com
Affiliation Web Site Templates
Please do backup first |
|
|
|