Ok I am able to understand this slowly. So furl is set by the web server. Can you tell me if the following steps are right?
1) User requests a URL like www.example.com?objectid=29187398kajsdkjshakdhaksjhd 2) This URL is converted toFURL by webserver during onrequeststart method of coldfusion (am I right?) 3) When webserver tries to convert, how does it know which table to query? Suppose in my case, for the above example URL, the fURL looks like www.example.com/abc-hello-world. SO the for above url variable objectid, "abc-hello-world" is retreived from the database to append to the URL. When and how is this done by web server? Thanks On Thu, May 10, 2012 at 8:06 AM, Justin Carter <[email protected]>wrote: > The furl variable in the URL is usually created by the rewrite rules on > the web server before the request is sent through to ColdFusion, so you'll > need to look in the appropriate place depending on which web server you are > using. Commonly it will be mod_rewrite rules in your vhost configuration in > Apache, or IIRF / IIS Rewrite for IIS. > > If the friendly URL rewrite rules are already set up correctly for your > web server then you will typically not need to change them :) > > Cheers, > Justin > On May 10, 2012 10:48 PM, "funand learning" <[email protected]> > wrote: > >> I am sorry, I wanted to know when is the variable FURL created? Which >> function of coldfusion code takes the objectid from the URL and converts >> into FURL? >> >> On Thu, May 10, 2012 at 7:45 AM, funand learning <[email protected] >> > wrote: >> >>> Thanks for responding Blair. Yes thats what I meant. Can you tell me if >>> the following part of the code does that? >>> >>> <cfif structKeyExists(url, "returnURL")> >>> <cfset session.loginReturnURL = >>> application.fapi.fixURL(url.returnURL) /> >>> </cfif> >>> >>> On Thu, May 10, 2012 at 12:18 AM, Blair McKenzie <[email protected]>wrote: >>> >>>> Do you mean the point where the user is redirected from that URL to the >>>> friendly one? The FU handling is done in onRequestStart in core's >>>> application.cfc. If the user is using a non-friendly url at that point, and >>>> the application supports friendly urls, FarCry will redirect the user. >>>> >>>> Blair >>>> >>>> On Wed, May 9, 2012 at 11:47 PM, funandlearning < >>>> [email protected]> wrote: >>>> >>>>> Hi All - >>>>> >>>>> I am new to farcry and looking at some existing code. I have a >>>>> question on friendly URL. At what time of the application do the >>>>> actual URL gets parsed to friendly URL. >>>>> >>>>> Suppose I have a href link as >>>>> >>>>> <a href="www.example.com?objectid=123askjhdakjshdkasjhd">Go to new >>>>> page</a> >>>>> >>>>> When I click the above link, the new page URL is a friendly URL. I >>>>> checked in onApplicationStart, but the URL is constructed even before >>>>> that. Can you let me know at what time is the URL parsed, and which >>>>> function does it? Is it fixURL function in utils.cfc? >>>>> >>>>> -- >>>>> You received this message cos you are subscribed to "farcry-dev" >>>>> Google group. >>>>> To post, email: [email protected] >>>>> To unsubscribe, email: [email protected] >>>>> For more options: http://groups.google.com/group/farcry-dev >>>>> -------------------------------- >>>>> Follow us on Twitter: http://twitter.com/farcry >>>> >>>> >>>> -- >>>> You received this message cos you are subscribed to "farcry-dev" Google >>>> group. >>>> To post, email: [email protected] >>>> To unsubscribe, email: [email protected] >>>> For more options: http://groups.google.com/group/farcry-dev >>>> -------------------------------- >>>> Follow us on Twitter: http://twitter.com/farcry >>> >>> >>> >> -- >> You received this message cos you are subscribed to "farcry-dev" Google >> group. >> To post, email: [email protected] >> To unsubscribe, email: [email protected] >> For more options: http://groups.google.com/group/farcry-dev >> -------------------------------- >> Follow us on Twitter: http://twitter.com/farcry > > -- > You received this message cos you are subscribed to "farcry-dev" Google > group. > To post, email: [email protected] > To unsubscribe, email: [email protected] > For more options: http://groups.google.com/group/farcry-dev > -------------------------------- > Follow us on Twitter: http://twitter.com/farcry > -- You received this message cos you are subscribed to "farcry-dev" Google group. To post, email: [email protected] To unsubscribe, email: [email protected] For more options: http://groups.google.com/group/farcry-dev -------------------------------- Follow us on Twitter: http://twitter.com/farcry
