<CFSET templen = LISTLEN(PATH_INFO, "/")>
        <CFSET tempfilename = TRIM(LISTGETAT(get_index.url, templen, "/"))>

        tempfilename now equals whatever follows the last /
        you might want to write another line to remove anyfiles names,
incase they add on /index.cfm on the end or something like that....


        Terry Bader
        IT/Web Specialist
        EDO Corp - Combat Systems
        (757) 424-1004 ext 361 - Work
        [EMAIL PROTECTED]   


        (757)581-5981 - Mobile
        [EMAIL PROTECTED]
        icq: 5202487   aim: lv2bounce
        http://www.cs.odu.edu/~bader






> -----Original Message-----
> From: Art Broussard [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 10, 2001 1:25 PM
> To: CF-Talk
> Subject: redirect based on URL
> 
> 
> I need to do this.
> Allow someone to use an address like this:
> http://tracker.dealers.com/fishinhole 
> 
> and have it redirect to a page like this
> http://tracker.dealers.com/dealers.cfm?blah=blah&blah=blah
> 
> I cant dynamicly create a directory on the sever because of 
> security issues.
> They dont want to create the directories them self because 
> it's to much "work" for them.
> 
> Any idea on how to do this.
> 
> I know yahoo does something like this but I don't know if 
> that would help or how to do it.
> 
> TIA,
> 
> Art
> 
> 
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to