You can use this

#Reverse(ListRest(Reverse(HTTP_REFERER),"/"))#/

-----Original Message-----
From: Pete Ruckelshaus [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 01, 2002 12:05 PM
To: CF-Talk
Subject: Re: How to get directory from full URL?


It does and it doesn't.

The application I am working on is a databased 404 redirect system, and
getTemplatePath did not return any value since it was trying to get the path
of the 404 handler rather than the actual bad page (which I can get via the
CGI variables)..

Pete

----- Original Message -----
From: "Stephen Moretti" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, October 01, 2002 11:44 AM
Subject: Re: How to get directory from full URL?


> Check the CF Function list.
>
> getTemplatePath() will do what you want...
>
> Stephen
>
>
> ----- Original Message -----
> From: "Pete Ruckelshaus" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Tuesday, October 01, 2002 4:32 PM
> Subject: How to get directory from full URL?
>
>
> > I am trying to get a fully resolved directory (i.e.
> http://www.mysite.com/this/is/a/directory/) from a fully resolved URL
(i.e.
> http://www.mysite.com/this/is/a/directory/and_this_is_a_file.cfm) that I
am
> passing in, but I am having difficulty in finding a simple and elegant way
> to do so.
> >
> > I looked on cflib.org and didn't find any UDF's there...does anyone have
a
> solution for this?  Straight code or a UDF would be great.
> >
> > Thanks
> >
> > Pete
> >
> >
>

______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
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