Get the domain entered from the request. Coldfusion CGI.HTTP_HOST

Use CGI.HTTP_HOST

Issue: mydomain.com gets load-balanced and uses multiple servers. CGI.SERVER_NAME will not return ‘mydomain’ but will return ‘sever1’ or ‘server2’ etc.

I want to check the request URL, and if it does not include www, re-locate to www.mydomain/pagerequested?event=eventrequested




#field#: #CGI[field]#









#theURLBase#


Leave a Reply

Your email address will not be published. Required fields are marked *