I always start my path(s) from the webroot. (i.e. /) In your case it appears that would be /index.cfm FYI Depending on your situation you might want to create a way to set the root path in your app in case you ever install it in a folder other than a webroot..
-- Ryan On Fri, May 22, 2009 at 11:48 AM, Pranathi Reddy <[email protected]>wrote: > > Hi , > > I am trying to move back one directory and redirect the page to another > page. > eg: I am at page > http:/localhost/Extradirectory/newfile.cfm and I want to redirect to the > index.cfm at http:/localhost/newfile.cfm if condition satisfies. > > I am using cflocation to direct to another page but I am at path > /inetpub/project1/Extradirectory/newfile.cfm and my .cfm file is in path > /inetpub/project1/index.cfm > > <cfif name ='David'> > <cflocation url="index.cfm> > </cfif> -- it throws an error says file not found. > > Can any one have any suggestions fro me. > > Thanks in Advance, > Pranathi. > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322718 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

