Archive of UserLand's first discussion group, started October 5, 1998.

Re: Redirection thru file system for IIS?

Author:David Carter-Tod
Posted:7/26/1999; 11:43:14 AM
Topic:Redirection thru file system for IIS?
Msg #:8765 (In response to 8755)
Prev/Next:8764 / 8766

This is written in VBScript (the default for most installations)

<% response.buffer=true %> Must be the very first thing in the file, before absolutely anything else (except the language declaration if you have one, which would be <%@ Language = VBScript %>)

<% urlToGo="http://www.wc.cc.va.us/"
response.redirect(urlToGo) %>

Technically, you shouldn't need any HTML at all in the file. It just needs to be a ".asp" file, which is a problem for ".html" files, but you can add file extension mappings under the Home Directory tab -- the configuration button.

Alternatively, but much more involvedly, IIS is completely scriptable via ADSI. After much searching, this is about the best article on the subject (Microsoft's documentation on ADSI is really bad)

http://www.15seconds.com/Issue/980304.htm

It's worth your understanding ADSI, because you can use it to control and access all kinds of directories and object stores. I use it to access and authenticate against LDAP directories for example.

David





This page was archived on 6/13/2001; 4:51:33 PM.

© Copyright 1998-2001 UserLand Software, Inc.