Redirect to virtual directory

From: A.M (nospam1_at_online.nospam)
Date: 06/01/04


Date: Tue, 1 Jun 2004 09:37:56 -0400

Hi,

I need to redirect requests to IIS root folder to one of it's virtual
directories.
For example it someone asked for :

http://WebServer/

The request should be redirected to:

http://WebServer/MainApp/

At this poin i have a default html with this meta on the page header :

<META HTTP-EQUIV="Refresh" CONTENT="0;URL=/MainApp/">

It doesn't work!

However If I change it to:

<META HTTP-EQUIV="Refresh" CONTENT="0;URL=http://WebServer/MainApp/">

It works, the problem is http://WebServer / is internal LAN name. Someone
access it through public internet, It won't work.

Can I configure IIS to do that redirection without any html or aspx file and
redirect the request to a relative URL rather than absolute URL?

Any help would be appreciated,
Alan


Quantcast