Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IIS redirecting question

Status
Not open for further replies.

KingE

MIS
Nov 4, 2002
39
US
I have just set up a new web server that will host a handful of intranet websites and web applications, however I want to be able to call one of the virtual websites if the default website is hit, automatically

ie to hit a rather than type the virtual directory.

I have tried url and directory redirecting and the asp scripts no longer work because the root becomes the virtual directory.

I want to use IIS to do this rather than place a blank html page to redirect to the required virtual website.

Is this possible

Thanks KingE

MCP, MCSE-NT4.0, MCSA, MCSE W2k (soon)
 
I've just through this battle. Basically IIS 5.0 isn't W3C compliant and definitely does not comply with RFC 2616.

I assumed they would have this fixed by SP3 but they did not.

Although it may seem that the redirects work, they produce errors if you were to look at the server header information.

The only way around this is to have a default ASP page that handles the redirects correctly.

Put this in your DEFAULT.ASP

<%
Response.Status = &quot;301 Moved Permanently&quot;
Response.addheader &quot;Location&quot;, &quot;Response.End
%>
 
Thanks for the help, I didn't want to but I guess its my last choice. When I redirect the default website the virtual directory becomes root for all the default site and nothing works. I've had it work fine with different URL's and directory locations however in this senairo i have multiple virtual sites that path from the default root. KingE

MCP, MCSE-NT4.0, MCSA, MCSE W2k (soon)
 
Why you are not using more web sites instead of virtual directories. Assign more IP addresses to your network interface, and the distribute them to your websites.
Then, add records in the DNS as you want (A, CNAME, SRV). Gia Betiu
giabetiu@chello.nl
Computer Eng. CNE 4, CNE 5, MCSE Win2K
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top