<cc>
 dim domain(1000)
 
 domain(0) = "greenhess.com"
 domain(1) = "okosvillanyora.hu"
 
 e = app.url
 elotag = strsearch(e, "http://")
 'echo app.domainname
 if trim(app.domainname)="greenhess.hu" then echo "<script>location.href='" & "https://greenhess.com';</script>"
 
 
 
 for t = 0 to 999
  if domain(t) = "" then exit for
  if elotag = 1 then
   if strsearch(e, "http://" & domain(t)) = 1 then echo "<script>location.href='" & "https://" & domain(t) & "';</script>": exit for
   if strsearch(e, "http://www." & domain(t)) = 1 then echo "<script>location.href='" & "https://" & domain(t) & "';</script>": exit for
  end if
 next
 rem echo "Helló " & s
 
</cc>