You also might want to change the delimiter from . To = in <cfset setVariable("url." & listFirst(variables.item, "."), listRest(urlDecode(variables.item),"."))> Like so <cfset setVariable("url." & listFirst(variables.item, "="), listRest(urlDecode(variables.item),"="))>
And you need to include this tag before anything else, so a good spot for it would be in the application.cfm file. Taco Fleur -----Original Message----- From: Taco Fleur [mailto:[EMAIL PROTECTED] Sent: Monday, 30 June 2003 9:15 PM To: CF-Talk Subject: RE: Search engine safe urls in CFMX You could form al your links like index.cfm/var=foo And use the custom tag I wrote, remove the cf_error tag <!-------------------------------------------------------------- <fileInfo> <author>Taco Fleur ([EMAIL PROTECTED])</author> <createDate>Sunday, 06 May 2003 18:29:00<createDate> <description>file creates url variables from search engine safe urls</description> </fileInfo> ---------------------------------------------------------------> <cfswitch expression="#thisTag.executionMode#"> <cfcase value="start"> <cfloop list="#caller.cgi.path_info#" index="item" delimiters="/"> <cftry> <cfset setVariable("url." & listFirst(variables.item, "."), listRest(urlDecode(variables.item), "."))> <cfcatch type="any"> <cf_error errorcode="417" outputerror="false" detail="Tag: #cgi.cf_template_path#"> </cfcatch> </cftry> </cfloop> </cfcase> <cfcase value="end"></cfcase> </cfswitch> -----Original Message----- From: Jerry Staple [mailto:[EMAIL PROTECTED] Sent: Monday, 30 June 2003 8:20 PM To: CF-Talk Subject: FW: Search engine safe urls in CFMX Hi Can anyone tell me how you turn urls into search engine safe urls in Coldfusion Mx i.e TURN index.cfm?user=Joe Bloggs&bgcolor=blue&county=2 INTO index.cfm/user=Joe Bloggs/bgcolor=blue/county=2 etc etc Thanks in Advance Jerry Staple Web Application Developer Certified Coldfusion (5.0) Developer Head Office 133-137 Lisburn Road, Belfast Northern Ireland BT9 7AG T +44 (0) 28 9022 3224 F +44 (0) 28 9022 3223 E [EMAIL PROTECTED] W biznet-solutions.com ************************************************************************ ********************** If you are not the intended recipient, or person responsible for delivering it to the intended recipient, you are not authorized to and must not disclose, copy, distribute or retain this message or any part of it. The opinions / views / comments on this e-mail do not necessarily reflect any views or policies of biznet The recipient should check this email and any attachments for the presence of viruses. biznet accepts no liability for any damage caused by any virus transmitted by this email. biznet 2003. ************************************************************************ ********************** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Host with the leader in ColdFusion hosting. Voted #1 ColdFusion host by CF Developers. Offering shared and dedicated hosting options. www.cfxhosting.com/default.cfm?redirect=10481 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4