将 htaccess RewriteCond 转换为 web.config

Convert htaccess RewriteCond to web.config

从htaccess到web.config的这段代码converted/translation是什么?

Options +SymLinksIfOwnerMatch 
RewriteEngine On 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . / [L]

好的,我想找到答案了:

    <rule name="Remove trailing slash" stopProcessing="true">
        <match url=".*" />
        <conditions logicalGrouping="MatchAll">
            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
        </conditions>
        <action type="Rewrite" url="index.html" />
    </rule>