Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
Donnie #1
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
-
#39306 [NEW]: Changing Delimiter
From: ctingley at mediagrids dot com Operating system: Windows PHP version: 5.1.6 PHP Bug Type: MySQL related Bug... -
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... -
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... -
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... -
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... -
Bob Dively #2
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
-
Adam Cameron #3
Re: changing query string delimiter?
> Does anyone know how(or if) you can change the query string delimiter in
Well it's nothing to do with CF; it's to do with the HTTP protocol.> Coldfusion. I want to change it from '?' to '/' for obvious reasons. Is
> this possible?
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
-
VoLd #4
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,
>
> -DVoLd Guest
-
Donnie #5
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
-
Adam Cameron #6
Re: changing query string delimiter?
> It does a little (have to do with CF). The default delimiter for most
OK. I'm just going to agree with you there. But if you want to go have a> (if not all) web languages is the '?'
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".
Are you talking about the delimiter on a URL string, or just a list>some languages (like php for
> example) you can set this to something different. I read an article
delimiter? I suspect the latter. Search on livedocs for "list functions".
--
Adam
Adam Cameron Guest
-
Bob Dively #7
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
-
Paul Barber #8
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
-
Jon Cooper #9
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



Reply With Quote

