Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
kenji776 #1
Identifying the Current URL
Hey all. I have two domian names and depending on what one a user puts in i
want a different site to come up. The best way i though to do this was create a
small page that is automatically exucuted (index of course) and then depending
whether they typed [url]www.groundxerosystems.com[/url], or [url]www.digitalswordsmen.com[/url],
forward them to the appropraite page. How can i make cold fusion read the
address bar, then make a decision based on the contents of the address?
kenji776 Guest
-
Identifying Users
Contribute users are listed by user name in the Administer Site (Users and Roles) dialog box . Is there a way to identify a user if he/she uses an... -
Identifying the web site address of the current page
I have several web sites running the same set of pages and all accessing the same common database tables. A field in all the records contains the... -
Identifying spamhosts
Hi all, I'm trying to put together a web data base to allow people identify which machines are the primary routes of spam into our Inboxes. ... -
How to change the current thread current culture at run time.
I have created a new culture : Dim objCulture As New CultureInfo("he") //hebrew When I tried to assign it to the current thread. ... -
Identifying sprites
usually one uses the sprite bar or inspector to id currently selected member. with lingo the rollover will report spritenum the mouse is over, or... -
Stressed_Simon #2
Re: Identifying the Current URL
Your domain is in this variable 'CGI.HTTP_HOST'.
So do as follows.
<cfif CGI.HTTP_HOST IS "www.groundxerosystems.com">
<cfinclude template="index2.cfm">
<cfelse>
<cfinclude template="index.cfm">
</cfif>
Stressed_Simon Guest
-
kenji776 #3
Re: Identifying the Current URL
Thansk a ton, your code worked like a charm!
kenji776 Guest



Reply With Quote

