> Well the problem with a relative link is I have subfolders > with their own Application.cfc's. It'd throw an error on > those pages. Unless I dropped the same error templates into > all those directories. > > The root-relative links worked, but then the problem with the > SSL came up. > > I guess I could use a http link but that sounds tacky.
Will, One other thing you could do which I didn't mention is use the <base> tag: <base href="http://www.whatever.com/some/directory/" /> You could just write some application logic to change the URL in the base tag for all your page links depending on what server you're developing on. This way you don't need to hard-code any specific paths or use a variable in your links, except for URL's you might use within cflocation or server-side redirects, and possibly a few other scenarios. Just remember that if you do this to add a trailing slash to the URL in the href attribute of the base tag. All URLs will then start at the base tag's URL. You won't need a forward slash in your links, and if you put one there, any sub-directories specified in the base tag URL will be ignored. So, using the base tag above, a link like this: <a href="mypage.html">Go to my page in some directory</a> Would go to http://www.whatever.com/some/directory/mypage.html. A link like this: <a href="another/directory/mypage.html">Go to my page in another directory</a> Would go to http://www.whatever.com/some/directory/another/directory/mypage.html Finally, this: <a href="/mypage.html">Go to my root page</a> Would go to http://www.whatever.com/mypage.html Hope this helps! Andy ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:257650 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

