Forum Moderators: open

Message Too Old, No Replies

Is there a .NET equivalent for mod_rewrite and SSI?

         

Marcia

9:30 am on Jun 10, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Would there be an equivalent for Windows2000 hosting for what was discussed in this thread for Apache?

[webmasterworld.com...]

The hosting I'm looking at is Windows2000 with CGI/Perl, asp, and PHP, and a shopping cart would be generating dynamic pages. I'd also want to be able to use server side includes, .htm and .html, not .shtml

There would be no control over server configuration. Is it do-able, or should I stay with Linux/Apache hosting?

Torben Lundsgaard

10:33 am on Jun 10, 2002 (gmt 0)

10+ Year Member



I'm not sure about .net but on a "normal" IIS platform you need to install an ISAPI filter, which requires control over the server configuration.

Xoc

3:16 pm on Jun 10, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



So you are trying to do SSI and run scripts within .htm or .html pages, but don't have any control over the server. The way that IIS works is that as each file is requested, it looks in a list for what program to run on that file. You can see the dialog that controls that list in step 6 on this page [xoc.net]. If it doesn't find the file extension in that list, it just puts the file down verbatim.

So if .htm isn't on that list, then that it is just blasted down to the client. To modify file processing, you need to add an entry to that list. The steps necessary are shown in that link. Unfortunately that requires server configuration capabilities.

This is not improved any in .NET, since .NET sits on top of IIS. Modifying this dialog is necessary to tell IIS to process .aspx pages as well as .asp pages.

SSI is processed by the ASP file processor (called an ISAPI extension, as Torben said). So same issue.