Archive of UserLand's first discussion group, started October 5, 1998.
The Way of IIS and Redirection
Author: Jason Domina Posted: 7/26/1999; 2:31:44 PM Topic: Redirection thru file system for IIS? Msg #: 8781 (In response to 8755) Prev/Next: 8780 / 8782
Although this is not an issue for Dave anymore, (he has found a quick, workable solution) here is The Way of IIS and Redirection. Redirect Variables.Reading the online help for this particular feature made my head spin and I'm not sure I can make it any more clear, but here goes. Say for example I have a folder "foo1" containing the folder "foo2". If I access this from my website it would be something like www.mysite.com/foo1/foo2/. Now, for whatever reason, I want the content to come from /foo2/foo2.
- To accomplish this, I simply click on the properties tab of foo1 from within the IIS MMC and select "Directory".
- Find "When connecting to this resource..." and select "A redirection to URL".
- Simply type in your new url followed directly by the Redirect Variable "$S". In my hypothetical case, the URL looks like "http://www.mysite.com/foo2$S", but it could just as easily be an URL on a different server like "http://www.myfancynewsite.com/foo2/somewhereelse$S"
- Make sure that you check the box labeled "The exact URL entered above" and if it is to be a permanant redirect, the appropriate box.
That shoud do it. For more information on the Redirect variables, click on the Help button when you are in this tab of the MMC.
There are responses to this message:
- Re: The Way of IIS and Redirection, Dennis Peterson, 7/26/1999; 3:12:50 PM
This page was archived on 6/13/2001; 4:51:33 PM.
© Copyright 1998-2001 UserLand Software, Inc.