I would just use a default.htm file with a client redirect: <script language="JavaScript" type="text/javascript"> <!- window.location.replace("../index.cfm?fuseaction=products.mainpage") //--> </script>
That way it only affects users typing in the URL without specifying the file - therefore no variable issues.
HTH, Noam ---------- From: Ken Beard [SMTP:anon_tyrant@yahoo.com] Sent: Thursday, 22 February 2001 4:42 To: Fusebox Subject: Re: directory-friendly urls with a central index structure
ok, the fuseaction bit would have to be a couple of if's about form/url variables, since formurl2attributes wouldn't have been run yet.
--- Ken Beard {anon_tyrant@yahoo.com> wrote: > scenario: > 1. client want to be able to tell people "go to > www.whatever.com/products/ to see my stuff" and have > them see that directory consistently in the url > 2. you want to do one central index with dot > notation > fuseactions > > solution: > make an application.cfm in the /products/ directory > with the following lines > <cfset request.self=cgi.path_info&"index.cfm"> > <cfparam name="attributes.fuseaction" > default="products.mainpage"> > <cfinclude template="../index.cfm"> > <cfabort> > > > not sure if i got that cgi var right, but this > should > work, no? > > ===== > Ken Beard > cfug manager > Tampa, FL > anon_tyrant@yahoo.com > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/fusebox@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists