I think you're possibly asking the wrong question. What I think you want to do is to redirect incoming ASP URLs to a common ASP page for processing. Obviously, one of the things the common ASP page would want to know, is the original URL as entered by the user.
I had a quick look at my IIS service manager and couldn't find anything that looked remotely like a redirect facility. However, there might be something to be found with a Google search. For a large site with full control over their server environments, I don't think that this would be too difficult to achieve. There are two places I can think of doing it: 1) The Internet connection server could detect and redirect the pages, including the original URL as a query string. 3) The ASP/PHP server could apply a filter to the URLs, redirecting them in a simple or complex fashion, but transparently to the URL, so that the target code grabber the URL in the usual way. A level of filtering could make the ultimate coding easier. Consider the URL tree: site/aDepartment/default.asp site/aDepartment/aPage.asp site/aDepartment/standardSubDirectory/default.asp site/anotherDepartment/default.asp site/anotherDepartment/aPage.asp site/anotherDepartment/standardSubDirectory/default.asp where the department changes but the other parts do not. Simple redirecting would send all of these to siteRedirect/commonPage.asp and the code in that page would need to do a further redirect depending on the URL. Filtering would sent them to: siteRedirect/department/default.asp siteRedirect/department/aPage.asp siteRedirect/department/standardSubDirectory/default.asp so the pages need to find out what department they're looking after, but otherwise know what to do. All fairly easy to do if you have access to the underlying server code - especially on a Unix box. Probably not easy at all if you're running IIS out of the box. Dave S ----- Original Message ----- From: Moshe Tapnack To: [email protected] Sent: Thursday, December 23, 2004 11:27 AM Subject: RE: [ASP] reading path folder as querystring? 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 [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/
