changing query string delimiter?

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

  1. #1

    Default changing query string delimiter?

    Does anyone know how(or if) you can change the query string delimiter in
    Coldfusion. I want to change it from '?' to '/' for obvious reasons. Is
    this possible?

    Ex:
    From: [url]http://www.mysite.com/products.cfm?id=1234[/url]
    To: [url]http://www.mysite.com/products.cfm/1234[/url]

    Is it possible to do this without URL rewriting?

    Thanks,

    -D
    Donnie Guest

  2. Similar Questions and Discussions

    1. #39306 [NEW]: Changing Delimiter
      From: ctingley at mediagrids dot com Operating system: Windows PHP version: 5.1.6 PHP Bug Type: MySQL related Bug...
    2. Maintain query string and somehow auto refresh a pagewith that string intact
      I have a drill down where on page one the user selects criteria to narrow down the search for a speicific group of employees(like all hired between...
    3. Delimiter for string..
      Friends, I am running a perl script as below which is working perfectly and want to replace the hardcoded values with variables. (the script...
    4. Can I convert a string to a list by some kind of delimiter?
      > I would like to know if it is possible in Director MX that I can convert a Yes, by iterating through all the items in the string. Possibilities...
    5. Changing case of the first letter of words in string
      I want to make the case of the first letter of all the words in a selected string to upper case. The code s/\b(\w+)/\u$1\E/g; enables me to do...
  3. #2

    Default Re: changing query string delimiter?

    In alt.comp.lang.coldfusion Donnie <dqmillar@remove-thisyahoo.com> wrote:

    : Does anyone know how(or if) you can change the query string delimiter in
    : Coldfusion. I want to change it from '?' to '/' for obvious reasons. Is
    : this possible?

    : From: [url]http://www.mysite.com/products.cfm?id=1234[/url]
    : To: [url]http://www.mysite.com/products.cfm/1234[/url]

    : Is it possible to do this without URL rewriting?

    I don't quite understand what you're trying to do. Are you
    talking about something like Apache's mod_rewrite?

    --
    Bob Dively | I used to be indecisive, but now I'm not sure...
    Bob Dively Guest

  4. #3

    Default Re: changing query string delimiter?

    > Does anyone know how(or if) you can change the query string delimiter in
    > Coldfusion. I want to change it from '?' to '/' for obvious reasons. Is
    > this possible?
    Well it's nothing to do with CF; it's to do with the HTTP protocol.

    You should have a look at how your webserver handles / can be made to
    handle URL strings (mod_rewrite for Apache, for example)

    --

    Adam
    Adam Cameron Guest

  5. #4

    Default Re: changing query string delimiter?

    Well I'm not sure if '?' can be changed to '/' but you could write
    something like the following into your application.cfm to make url varibles

    <cfif FindNoCase(".cfm/",cgi.CF_TEMPLATE_PATH,1) neq 0>
    <cfset rightLength = len(cgi.CF_TEMPLATE_PATH) -
    findNoCase(".cfm/",cgi.CF_TEMPLATE_PATH,1) + 4>
    <cfset url.id = right(cgi.CF_TEMPLATE_PATH,rightLength)>
    </cfif>




    Donnie wrote:
    > Does anyone know how(or if) you can change the query string delimiter in
    > Coldfusion. I want to change it from '?' to '/' for obvious reasons. Is
    > this possible?
    >
    > Ex:
    > From: [url]http://www.mysite.com/products.cfm?id=1234[/url]
    > To: [url]http://www.mysite.com/products.cfm/1234[/url]
    >
    > Is it possible to do this without URL rewriting?
    >
    > Thanks,
    >
    > -D
    VoLd Guest

  6. #5

    Default Re: changing query string delimiter?

    It does a little (have to do with CF). The default delimiter for most
    (if not all) web languages is the '?' some languages (like php for
    example) you can set this to something different. I read an article
    about SEO that said this is possible in Coldfusion but didn't set fourth
    exactly how.

    -D


    Adam Cameron wrote:
    >>Does anyone know how(or if) you can change the query string delimiter in
    >>Coldfusion. I want to change it from '?' to '/' for obvious reasons. Is
    >>this possible?
    >
    >
    > Well it's nothing to do with CF; it's to do with the HTTP protocol.
    >
    > You should have a look at how your webserver handles / can be made to
    > handle URL strings (mod_rewrite for Apache, for example)
    >
    Donnie Guest

  7. #6

    Default Re: changing query string delimiter?

    > It does a little (have to do with CF). The default delimiter for most
    > (if not all) web languages is the '?'
    OK. I'm just going to agree with you there. But if you want to go have a
    look at RFC 1738 ([url]http://www.faqs.org/rfcs/rfc1738.html[/url]), you might find
    the people who specify what a URL is might be quite happy to disagree with
    you on my behalf. Search within that doc for the second match of the
    string "httpurl".
    >some languages (like php for
    > example) you can set this to something different. I read an article
    Are you talking about the delimiter on a URL string, or just a list
    delimiter? I suspect the latter. Search on livedocs for "list functions".

    --

    Adam
    Adam Cameron Guest

  8. #7

    Default Re: changing query string delimiter?

    In alt.comp.lang.coldfusion Donnie <dqmillar@remove-thisyahoo.com> wrote:

    : Does anyone know how(or if) you can change the query string
    : delimiter in Coldfusion. I want to change it from '?' to '/' for
    : obvious reasons. Is this possible?

    : Ex:
    : From: [url]http://www.mysite.com/products.cfm?id=1234[/url]
    : To: [url]http://www.mysite.com/products.cfm/1234[/url]

    BTW, your example will only work with a querystring that
    contains one name/value pair.

    --
    Bob Dively | I used to be indecisive, but now I'm not sure...
    Bob Dively Guest

  9. #8

    Default Re: changing query string delimiter?

    By 'for obvious reasons' I am assuming that you are attempting to create a
    Search Engine Safe URL (SES). If this is the case try the sesConverter
    Custom tag which was available on macromedia exchange, else the author is
    Erik Voldengen at [url]www.fusium.com[/url]

    PAB


    "Donnie" <dqmillar@REMOVE-THISyahoo.com> wrote in message
    news:e81a3$4228cfe9$ccf6844e$20089@VIAWEST.NET...
    > Does anyone know how(or if) you can change the query string delimiter in
    > Coldfusion. I want to change it from '?' to '/' for obvious reasons. Is
    > this possible?
    >
    > Ex:
    > From: [url]http://www.mysite.com/products.cfm?id=1234[/url]
    > To: [url]http://www.mysite.com/products.cfm/1234[/url]
    >
    > Is it possible to do this without URL rewriting?
    >
    > Thanks,
    >
    > -D

    Paul Barber Guest

  10. #9

    Default Re: changing query string delimiter?

    Adam -

    Check out [url]http://www.isapirewrite.com/[/url] . Sounds like what you are looking
    for.

    regards

    Jon
    Visation Ltd


    "Donnie" <dqmillar@REMOVE-THISyahoo.com> wrote in message
    news:39658$422de33c$ccf6844e$22392@VIAWEST.NET...
    > It does a little (have to do with CF). The default delimiter for most
    > (if not all) web languages is the '?' some languages (like php for
    > example) you can set this to something different. I read an article
    > about SEO that said this is possible in Coldfusion but didn't set fourth
    > exactly how.
    >
    > -D
    >
    >
    > Adam Cameron wrote:
    > >>Does anyone know how(or if) you can change the query string delimiter in
    > >>Coldfusion. I want to change it from '?' to '/' for obvious reasons. Is
    > >>this possible?
    > >
    > >
    > > Well it's nothing to do with CF; it's to do with the HTTP protocol.
    > >
    > > You should have a look at how your webserver handles / can be made to
    > > handle URL strings (mod_rewrite for Apache, for example)
    > >

    Jon Cooper 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