I use this code as a custom tag. It requires cgi.path_info and cgi.script_name
It transforms cgi.path_info into url variables you can urls like index.cfm/fuseaction/showrecord/id/23 with the custom you will get two url variables url.fuseaction=showrecord url.id=23 <cfset lRawUrlParam=Replace(cgi.path_info,script_name,"")> <cfset aRawUrlParam=ListToArray(lRawUrlParam,"/")> <cfloop from="1" to="#ArrayLen(aRawUrlParam)#" index="i" step="2"> <cfif i mod 2 eq 1 and i+1 lte ArrayLen(aRawUrlParam)> <cfset "url.#aRawUrlParam[i]#"=Evaluate("aRawUrlParam[i+1]")></cfif> </cfloop> ----- Original Message ----- From: "MW" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, July 30, 2002 5:08 PM Subject: MX and URL trick for search engines > We use the trick of replacing the ampersands and question marks in a URL > with slashes in order to have our website indexed by search engines. > Instead of having the URL appear as: > > MySite.cfm?VarName=Value > > it appears as > > MyPage.cfm/VarName/Value > > This works extremely well in CF5 on IIS5 (patched to the hilt). The > functionality happened, as I recall, out of the box. We saw the method > recommended in fusebox and adopted it. > > We are now configuring CFMX on a development server, and all of a sudden > it is broken. We never ran CF5 on this server as a control, so it could > be IIS that is misconfigured or has a patch that stops this behavior, > although we just built out another CF5 server on a fully patched IIS > install and had no problems. > > There is a third party ISAPI filter that will do this in IIS, but I'm > wondering what has happened to break this. Any ideas? > > Thanks, > Matt > > ______________________________________________________________________ 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