For 'http://www.shop.com/index.cfm?var1=1&var2=2'
Cgi.server_name would give you the 'www.shop.com' Cgi.script_name would give you the 'index.cfm' Cgi.query_string would give you 'var1=1&var2=2' Find() would not ensure that www was the first thing in the name so... <cfif listfirst(cgi.server_name, ".") is "www"> Then www was in the url. </cfif> Or <cfif left(cg.server_name, 3) is 'www'> Then www was in the url. </cfif> I don’t know why you need to know if www is there or not but if you had access to IIS, you could have http://www.shop.com point to a different place than http://shop.com all together -----Original Message----- From: stylo stylo [mailto:[EMAIL PROTECTED] Sent: Friday, May 06, 2005 6:59 AM To: CF-Talk Subject: How to get the full url requested in cf? I don't want the file system path, I want the full url of the page requested, e.g., http://www.shop.com/index.cfm . (Actually I just need the first part, not even the page, as I only want to know if "www" was used or not.) How can I get that in a CF variable when the page is requested? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205845 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54