Use ListGetAt() using the "/" as the delimiter....use the CGI.SCRIPT_NAME var
ListGetAt(CGI.SCRIPT_NAME ,4,"/") It may be the 3rd position and not the fourth...but give it a whirl HTH Cheers Bryan Stevenson B.Comm. VP & Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] --------------------------------------------------------- Macromedia Associate Partner www.macromedia.com --------------------------------------------------------- Vancouver Island ColdFusion Users Group Founder & Director www.cfug-vancouverisland.com ----- Original Message ----- From: "Bailey, Neal" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, September 23, 2003 10:31 AM Subject: Stripping the URL... > Hey guys, I have another one for ya... > > I am try to capture part of a url string and then take that of which I > captured and turn it into a variable so that I can compare in our db and > pass to another page. Not sure if this makes sense so I will give an > example. > > If some one types in their browser: > > http://www.mywebsite.com/johnspage <http://www.mywebsite.com/johnspage> > > There are no pages called "johnspage" so I would like to strip the name > "johnspage" from the url and compare it to our database for ""johnspage"" > and then return him to his actual page which looks like this: > > http://www.mywebsite.com/index.cfm?page=johnspage > <http://www.mywebsite.com/index?page=johnspage> > > We currently have something like this working but in asp using the IIS 404 > redirect and I am trying to figure out a way to do it in CF. > > Does anyone have any ideas or better ways of doing this? > > Thanks, stripping > - Neal > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm?link=i:4:138157 Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm

