RE: Using characters other than "?" in the url query string

2001-11-16 Thread Edward Chanter

Joel that was great, thanks a lot for your help

best wishes,

  -= Ed


 
~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Using characters other than "?" in the url query string

2001-11-16 Thread Joel Parramore

PATH_INFO is available as a CGI variable in ColdFusion --- anything after
the script name  but not including the part after the ? mark is (usually)
parsed out as PATH_INFO by web servers.  So in


http://www.myserver.com/test.cfm/this/is/the/path/info?/andthisisthequerystr
ing

CGI.PATH_INFO = /this/is/the/path/info
CGI.QUERY_STRING = andthisisthequerystring

(careful here --- IIS will throw everything after the ".com" part  in
PATH_INFO, so you'd instead get

CGI.PATH_INFO = /test.cfm/this/is/the/path/info
CGI.QUERY_STRING = andthisisthequerystring

So you can use PATH_INFO to pass information back and forth in, if you
rewrite your URLs accordingly.

If your site uses the query string on a URL to pass variables back and
forth, and you want to use PATH_INFO instead without rewriting your
application (e.g., to get search engines to index your URLs), then there are
various ways to accomplish that, depending on your web server and
application software.  Most that I can think of off the top of my head use
the web server's redirection functionality in various ways to accomplish
this.  Netscape Enterprise Server, for example, supports running CGI
programs or ColdFusion programs as "additional document directories" ---
your request would get handed off to another program for redirection,
essentially.  You'd start with

http://www.myserver.com/test.cfm/this/is/the/path/info

the server redirects this request to another program which parses out the
SERVER_NAME, PATH_INFO and SCRIPT_NAME variables and rewrites the URL with a
query string (or adds on to it), then sends the browser a redirect request,
i.e.,

http://www.myserver.com/test.cfm?/this/is/the/path/info";>

With IIS, you can set up aliases for redirection as well.  Or, from the
pages you referred to, you can also install a component onto IIS that will
rewrite the request internally for the application server without the
overhead of a redirect request to the browser.  (Apache pulls a similar
trick with the mod_rewrite module.)

Hope this helps...

Regards,
Joel Parramore




> -Original Message-
> From: Pascal Peters [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 16, 2001 3:06 AM
> To: CF-Talk
> Subject: RE: Using characters other than "?" in the url query string
>
>
> I don't know how to do that, but there is a custom tag that will do that
> for you. Check out http://www.erikv.com/downloads.html and download the
> sample fusebox application (the file is fbx_sesconverter.cfm)
>
> -Original Message-
> From: Edward Chanter [mailto:[EMAIL PROTECTED]]
> Sent: donderdag 15 november 2001 18:13
> To: CF-Talk
> Subject: Using characters other than "?" in the url query string
>
>
> G'day Peoples,
>
> Does any of you Jedi Knights know a way of reconfiguring either IIS or
> Cold
> Fusion so that it takes a "/" instead of a "?" as the control character
> in a
> url cgi query string...?
>
> According to the Spider Food site it is possible, but they don't tell
> you
> how and I can't find anything on the tech support site that talks about
> it?
>
> The Spider Food URL is:
> http://spider-food.net/dynamic-page-optimization-b.html
>
> Any help would be greatly appreciated..
>
> best wishes,
>
>   -= Ed
>
>
>
>
> 
~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Using characters other than "?" in the url query string

2001-11-16 Thread Pascal Peters

I don't know how to do that, but there is a custom tag that will do that
for you. Check out http://www.erikv.com/downloads.html and download the
sample fusebox application (the file is fbx_sesconverter.cfm)

-Original Message-
From: Edward Chanter [mailto:[EMAIL PROTECTED]]
Sent: donderdag 15 november 2001 18:13
To: CF-Talk
Subject: Using characters other than "?" in the url query string


G'day Peoples,

Does any of you Jedi Knights know a way of reconfiguring either IIS or
Cold
Fusion so that it takes a "/" instead of a "?" as the control character
in a
url cgi query string...?

According to the Spider Food site it is possible, but they don't tell
you
how and I can't find anything on the tech support site that talks about
it?

The Spider Food URL is:
http://spider-food.net/dynamic-page-optimization-b.html

Any help would be greatly appreciated..

best wishes,

  -= Ed


 

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists