It's possible to configure a virtual directory in IIS to allow an .asp
script to run on pages with an .htm extension. It can be done in the
'virtual directories properties' dialog box, when configuring scripts &
executables.

Does this in any way compromise the security of the server, or any other
virtual directory on the server?

My problem is this: A web on the virtual directory was re-designed, and I
need an external re-direct (for several pages) to provide search engines
with a re-direct while retaining the previous pages rankings, without using
a 'meta-redirect' or javascript.

Changing the configuration of the virtual directory in IIS is the easiest
way I can think of doing this, so I can use the following asp script to
redirect the pages, which all had an .htm extension:

<%
Response.Status = "301 Moved Permanently"

Response.addheader "Location",
"http://www.newweblocation/newdirectory/newfile.shtm"

Response.End

%>

This will accomplish the search engine friendly re-direct on the old pages
with the .htm extension.

Will this affect other virtual directories on the server?



Thanks in advance for any advice!!

Dee Holzman

RE: iis & script configuration by timcof

timcof
Wed Nov 26 02:04:32 CST 2003

You can map .htm to asp.dll and then, every html file will be processed by asp.dll. This will cause more load on your server just by the fact that now every
static file is now processed by the asp isapi ext. However, people do it everyday. Should not be a security issue, although I would post to
inetserver.iis.security to double-check.

You can do this at the site level, or the virtual directory leve as well.

Thank you. I hope this information is helpful.

Tim Coffey [MSFT]

This posting is provided ?AS IS? with no warranties, and confers no rights. You assume all risk for your use. © 2001 Microsoft Corporation. All rights reserved.
--------------------
| From: "GorgeKids.com" <info@gorgekids.com>
| Subject: iis & script configuration
| Date: Fri, 7 Nov 2003 11:05:17 -0800
| Lines: 39
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <eaxPWIWpDHA.2512@TK2MSFTNGP09.phx.gbl>
| Newsgroups: microsoft.public.inetserver.iis
| NNTP-Posting-Host: pppws165-235.gorge.net 209.216.165.235
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.inetserver.iis:283053
| X-Tomcat-NG: microsoft.public.inetserver.iis
|
| It's possible to configure a virtual directory in IIS to allow an .asp
| script to run on pages with an .htm extension. It can be done in the
| 'virtual directories properties' dialog box, when configuring scripts &
| executables.
|
| Does this in any way compromise the security of the server, or any other
| virtual directory on the server?
|
| My problem is this: A web on the virtual directory was re-designed, and I
| need an external re-direct (for several pages) to provide search engines
| with a re-direct while retaining the previous pages rankings, without using
| a 'meta-redirect' or javascript.
|
| Changing the configuration of the virtual directory in IIS is the easiest
| way I can think of doing this, so I can use the following asp script to
| redirect the pages, which all had an .htm extension:
|
| <%
| Response.Status = "301 Moved Permanently"
|
| Response.addheader "Location",
| "http://www.newweblocation/newdirectory/newfile.shtm"
|
| Response.End
|
| %>
|
| This will accomplish the search engine friendly re-direct on the old pages
| with the .htm extension.
|
| Will this affect other virtual directories on the server?
|
|
|
| Thanks in advance for any advice!!
|
| Dee Holzman
|
|
|