So I read the documentation on event handling. I then wrote this little
snippet of code but seem to be missing something small.
method "On Request"($inURL) `--> Text or <none>
C_Text($host)
$host:=get request info("Host")
$host:=BB_Upto ($host;":") `remove port
QUERY([FWClient];[FWClient]Subdomain=$host)
If (Records in selection([FWClient])=1)
return:="/"+String([FWClient]Version)+$inURL
Else
return:=$inURL
End if
end method
When I go to this url I get a 404
http://test.mysite.com:8888/admin/login.html
When I go to this url I get my expected page
http://test.mysite.com:8888/40003/admin/login.html
Any ideas where I'm going wrong?
Thanks
Justin
_______________________________________________
Active4D-dev mailing list
[email protected]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://vasudev.aparajitaworld.com/archive/active4d-dev/