IIS default Virtual directory redirection

dranizz
dranizz used Ask the Experts™
on
How to instruct IIS to redirect to a virtual directory?

Example: if I type www.hello.com in the web browser, I want IIS to redirect to www.hello.com/Application

Thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
If you IIS is configured for ASP
use this link:
http://support.microsoft.com/kb/159402
Commented:
I use something like the following.

<HTML>
<HEAD>
BODY  { font-family: Arial, Helvetica; }

//-->
  </STYLE>
  <SCRIPT LANGUAGE="JavaScript"><!--

function redirect () { setTimeout("go_now()",0); }

function go_now ()

{if (document.images)

{top.location.replace('http://www.helloworld.com/intro/logon.htm');}


else{top.location.href = 'http://www.helloworld.com/intro/logon.htm';}}


//--></SCRIPT>
</HEAD>
<BODY onLoad="redirect()">

<!--SELECTION--><!--/SELECTION-->
</BODY>
</HTML>

Author

Commented:
Ok that's what i did.

Thought there was a way to let IIS point on a virtual directory.

:(

Commented:
Maybe im not fully understanding what you want to do but If you always want www.hello.com/application then why not change the local path on the homedirectry tab for the site to point to the application folder?

That way www.hello.com will display as www.hello.com/applicaiton without having to redirect to www.hello.com/application.

As I said maybe I am not understanding completely

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial