Thanks for the quick reply, Soren. see, what i'm thinking is that your 'test' folder doesnt even exist - that the correct page will still load. so all i (theoretically) have is one page in my site - call it www.site.com/default.asp but thru that one page i can access info about New York if i go to www.site.com/ny and LA if i go to www.site.com/la - all in that one default.asp page. does this make sense? and is it doable? thanks again! M
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, December 23, 2004 2:17 AM To: [email protected] Subject: Re: [ASP] reading path folder as querystring? How about something like this.... YouAreHere = Request.ServerVariables("URL") ThisPage = Right(YouAreHere,Len(YouAreHere) - InstrRev(YouAreHere,"/")) For example http://www.tknw.com/test is the same as http://www.tknw.com/test/default.asp Soren Moshe Tapnack <[EMAIL PROTECTED]> 12/22/2004 03:52 PM Please respond to active-server-pages To: [email protected] cc: Subject: [ASP] reading path folder as querystring? Hi all is it possible in ASP to access a part of the URL as a querystring? example: www.site.com/folder can the index.asp in the root of this site show a page that is based on the "folder" parameter - instead of simply showing the index.asp file that sits inside of "folder"? another example: goto www.whois.sc now goto www.whois.sc/cnn.com obviously there isnt a folder for every single domain name within the whois.sc site. so how do they access the URL as a parameter? another exmple (i;m on a roll, don't stop me): http://profiles.yahoo.com/tapnack can this sort of thing be done in ASP? many thanks Moshe [Non-text portions of this message have been removed] --------------------------------------------------------------------- Home : http://groups.yahoo.com/group/active-server-pages --------------------------------------------------------------------- Post : [email protected] Subscribe : [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] --------------------------------------------------------------------- Yahoo! Groups Links ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ [Non-text portions of this message have been removed] --------------------------------------------------------------------- Home : http://groups.yahoo.com/group/active-server-pages --------------------------------------------------------------------- Post : [email protected] Subscribe : [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] --------------------------------------------------------------------- Yahoo! Groups Sponsor ADVERTISEMENT <http://us.ard.yahoo.com/SIG=129tmnnjm/M=297844.5692940.6750200.3356155/D=gr oups/S=1705115381:HM/EXP=1103847455/A=2196681/R=0/SIG=10v7of2am/*http://www. target.com/careers> click here <http://us.adserver.yahoo.com/l?M=297844.5692940.6750200.3356155/D=groups/S= :HM/A=2196681/rand=106165156> _____ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/active-server-pages/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> . [Non-text portions of this message have been removed] ------------------------ Yahoo! Groups Sponsor --------------------~--> $4.98 domain names from Yahoo!. Register anything. http://us.click.yahoo.com/Q7_YsB/neXJAA/yQLSAA/17folB/TM --------------------------------------------------------------------~-> --------------------------------------------------------------------- Home : http://groups.yahoo.com/group/active-server-pages --------------------------------------------------------------------- Post : [email protected] Subscribe : [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] --------------------------------------------------------------------- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/active-server-pages/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
