you might look into mod_rewrite. it's originally an Apache module, but I remember someone saying that there is a free IIS port of it as an ISAPI filter. You can also set up mappings, do conditional rewrites, and alot of other remarkably helpful stuff (including SES urls). I use it on several sites to expose friendly URLs to customers, because for some reason they don't like remembering long query strings. ; )
barneyb > -----Original Message----- > From: Bailey, Neal [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 23, 2003 10:31 AM > To: CF-Talk > 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:138162 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 Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

