Hi,

I have 4 Microsoft Windows Server 2003 Standard running IIS in a NBL
cluster. One common task is to create a virtual directory which
redirect to the correct url on the site. E.g. you enter www.mydomain.com/easy2remember
and you get redirected to www.mydomain.com/department/usersites/easy2remember.

Is there any way to script a this task, so I only have to enter the
name of the virtual directory and where it should redirect?

Best regards,
Rene Jensen

Re: Scripting IIS redirect by David

David
Sat Jun 21 17:34:52 CDT 2008

On Jun 19, 8:17=A0am, skinkehunden <skinkehun...@gmail.com> wrote:
> Hi,
>
> I have 4 Microsoft Windows Server 2003 Standard running IIS in a NBL
> cluster. One common task is to create a virtual directory which
> redirect to the correct url on the site. E.g. you enterwww.mydomain.com/e=
asy2remember
> and you get redirected towww.mydomain.com/department/usersites/easy2remem=
ber.
>
> Is there any way to script a this task, so I only have to enter the
> name of the virtual directory and where it should redirect?
>
> Best regards,
> Rene Jensen


Yes it can be scripted, but the script has to be authored/copied/
stolen.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//

Re: Scripting IIS redirect by skinkehunden

skinkehunden
Tue Jun 24 08:03:40 CDT 2008

On 21 Jun., 23:34, David Wang <w3.4...@gmail.com> wrote:
> Yes it can be scripted, but the script has to be authored/copied/
> stolen.

Hi,

Could you be more specific? Script example or something.

Best regards,
Rene Jensen

Re: Scripting IIS redirect by YouBigDummy

YouBigDummy
Tue Jun 24 16:21:01 CDT 2008

You can take my code snippet below and replace the url string after url= with
the correct place you would like the request to be redirected to. Then place
the code inside a notepad file. Save the notepad file with an .htm extension
and place it in the virtual directory of your choice. Did you know you can do
some redirects in the IIS interface? But the redirect in IIS is limited!
Code Starts Here
<HTML>
<head>
<meta http-equiv="REFRESH" content="0;url=/yoursite/index.html">
</head>
<body>
</Body>
</HTML>
Code Ends Here
"sk