基于web.config的url重写的绝对最小内容是多少?

Ada*_*tle 7 asp.net iis iis-7 url-rewriting

我将在不久的将来在IIS7服务器上部署一个应用程序,并希望使用每个应用程序的URL重写设置web.config,但这不是一个ASP.NET应用程序,所以我不需要任何多余的东西.

为了运行我的应用程序并使用URL重写,我在web.config中需要的绝对最低值是多少?

Ada*_*tle 8

经过大量的谷歌搜索和绊倒各种文章,我发现这篇文章,需要安装URL重写模块(不与IIS7打包).之后就很简单了.

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule>
                    <match url="start\.html" />
                    <action type="Rewrite" url="finish.html" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>
Run Code Online (Sandbox Code Playgroud)

我很惊讶需要额外的下载 - 我认为这个功能应该被烘焙(在Win7x64上测试).哦,好吧,至少它有效.