On Thu, Feb 25, 2010 at 9:05 PM, Jeff U <[email protected]> wrote: > I'm hoping I can create all links RELATIVE and that way they work > both locally as well as on production with no code changes what-so-ever.
By far, the easiest solution is to make your links relative to the current page/directory rather than the root. Instead of this: <a href="/somepath/somefile.cfm"> do this: <a href="somefile.cfm"> or this: <a href="../../somefile.cfm"> This avoids having to know what the root root directory is entirely. This may not be practical in your case, but in most cases it works just fine. -Cameron -- Cameron Childress Sumo Consulting Inc http://www.sumoc.com --- cell: 678.637.5072 aim: cameroncf email: [email protected] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:331195 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

