Identifying the Current URL

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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. ...
    4. 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. ...
    5. 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...
  3. #2

    Default 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

  4. #3

    Default Re: Identifying the Current URL

    Thansk a ton, your code worked like a charm!
    kenji776 Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139