Ben Densmore wrote:

> Can someone tell me how you can get an application.cfm file to use 
> cflocation to redirect to an absolute path. Right now I just hard code 
> the url but it's a pain when I put the application from machine to 
> another to run locally and have to change the url. I have tried using 
> GETDIRECTORYFROMPATH(CGI.CF_TEMPLATE_PATH) but it returns the physical 
> path i.e c:\inetpub\wwwroot\mydirecotryname
> 
> what I need to do is have it point to http://localhost/mydirectoryname  
> instead so that if someone copies the netire directory over their 
> machine they don't have to make any changes at all to that cflocation 
> tag.


<cflocation url="http://#cgi.server_name#/#ListFirst(cgi.script_name,'/')#">

Jochem
______________________________________________________________________
Why Share?
  Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
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

Reply via email to