将web.config转换为.htaccess

时间:2016-10-29 21:29:24

标签: apache .htaccess web-config

我需要帮助将我的web.config文件转换为.htaccess文件。 我对服务器规则不是很熟悉,因为我主要设计和开发网站,所以我需要一些帮助。

有人可以帮助我将代码转换为.htaccess吗?

<system.webServer>
<rewrite>
<rules>
<rule name="RewriteRules" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
<add input="{REQUEST_URI}" pattern="^/(api)" negate="true" />
</conditions>
<action type="Rewrite" url="/index.html" />
</rule>
</rules>
</rewrite>
</system.webServer>

0 个答案:

没有答案