35 pts.
 Need to do Conditional Redirects in Lotus Domino
I need to detect the host_name of users hitting my public site as the page loads, then redirect certain host_names to different URLs as appropriate.

The redirects will be in my application, not on the server itself.  I speak LotusScript fluently and a little Javascript.

Thanks!

Mike



Software/Hardware used:
Lotus Domino.
ASKED: February 18, 2011  2:15 PM
UPDATED: February 22, 2011  2:42 PM

Answer Wiki:
You could try the "REMOTE_HOST" CGI variable (in LScript doc.Remote_Host where doc is in the in memory context document) but I doubt you will get what you are looking for. Generally the only thing you get about a client are the browser used and the IP address. Is this for an internal website or external? If using a Form for the interface you can just add a field called REMOTE_HOST and access it. If using anything else, use the above line of code in your Query_Open. Redirecting is at times cumbersome, a Java Servlet might be better for what you are trying to do.
Last Wiki Answer Submitted:  February 22, 2011  2:42 pm  by  SlikTool   1,830 pts.
All Answer Wiki Contributors:  SlikTool   1,830 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _