Re: HTM to ASP
by "John Romano" <jromano(at)pb.net>
|
Date: |
Thu, 8 Jun 2000 17:58:11 -0400 |
To: |
"Tom Towle" <webmaster(at)fielding.edu>, <hwg-servers(at)mail.hwg.org> |
References: |
tds |
|
todo: View
Thread,
Original
|
|
You could just change the server handler for HTM files so that HTM files
were treated like SHTM files.
In the MMC/ISM right click on the site and open the properties. Go to the
"Home Directory" tab. In the "Application Settings" section click on
"Configuration". You will see a list of all the file types that have an
application map. Note the ".shtm", ".shtml" or ".stm" mapping properties.
On mine it says:
Executable: C:\WINNT40\System32\inetsrv\ssinc.dll
Extension: .shtm
Method Exclusions: <blank>
Script Engine: SELECTED
Check that file exists: NOT SELECTED
Click the Add button and set it up as follows:
Executable: C:\WINNT40\System32\inetsrv\ssinc.dll
Extension: .htm
Method Exclusions: <blank>
Script Engine: SELECTED
Check that file exists: NOT SELECTED
That will get your .htm files parsed just like they were .shtml files.
Please keep in mind that making the server parse .htm files will slow things
down when handling normal htm files. You might consider instead using a
freeware batch renaming program like:
http://www.cablevision.qc.ca/Zerk/Files/ZerkRen%20V11.zip
or
http://www.flores.nl/software/renameit_20.exe
...to simply change the names of your files to .shtm, leaving .htm files
alone to run fast and unparsed.
NEXT
Now you're going to have to convert all the *NIX include statements into the
IIS version of that statement; "<!--#include file="filename.inc"-->". If
you're using server side includes to execute CGI apps... well... you're
kinda screwed there. IIS basically sucks at traditional *NIX style SSI and
it's very insecure.
To do the find/replace I'd advise going over to www.winfiles.com and picking
up one of those super fast freeware search and replace programs. I use this
lean and mean program:
http://www.emsoft.co.jp/ftp_pub/replall/rpl100e.exe
It's fast and it'll handle subdirectories.
Of course you could always just host on a chili!soft ASP unix server and get
the best/worst of both worlds! ;)
Good luck!
John Romano
www.lihq.net
> At 09:28 AM 6/8/00 -0700, Tom Towle wrote:
> >I have a need to change a web server to IIS. I would like to be able to
> >batch rename all of my "htm" files to "asp" to enable an include script
> >such I previously implemented with SSI and SHTML.
> >
> >I am looking at the NT4 Resource Kit utility ForFiles command that allows
> >for batch NT command processing of directory structures using filemasks
and
> >a filename variable. It does not seem to afford me this capability
however.
> >
> >Anyone ever deal with this scenario? Changing HTM to ASP?
> >
> >Tom
> >Tom Towle, MAIP - Webmaster - The Fielding Institute
> ><mailto:webmaster(at)fielding.edu>webmaster(at)fielding.edu -
> >http://www.fielding.edu/
HWG: hwg-servers mailing list archives,
maintained by Webmasters @ IWA