Thanks Dave.
 
as you say, not too easy on IIS, especially in a shared environment....
 
basically what i am trying to achieve is to build a friendly system for
visitors to remember the URL (like www.site.com/ny), but also to allow the
client (site owner) to open new locations as he needs, without me having to
create a new folder and pages for him everytime.
 
thanks :)
Moshe

-----Original Message-----
From: David Smart [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 23, 2004 3:16 AM
To: [email protected]
Subject: Re: [ASP] reading path folder as querystring?


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]



---------------------------------------------------------------------    
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=129p59jf8/M=297844.5692940.6750200.3356155/D=gr
oups/S=1705115381:HM/EXP=1103851123/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=946319104>   


  _____  

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 --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/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/
 



Reply via email to