我想要IIS10中的RewriteURL经典ASP
-> domain.com/login.asp
还有一种使用RewriteRule的方法。
我对此不太确定。
请帮帮我..。
这是我的web.config文件设置..。
谢谢。
发布于 2017-02-23 14:16:15
修改你的原始web.config --试试这个。如果您对服务器具有RDP访问权限,还可以在IIS管理器中使用URL重写工具--这将为您写入web.config。
<configuration>
<system.webServer>
<httpErrors errorMode="Detailed" />
<defaultDocument enabled="true">
<files>
<add value="default.asp" />
<add value="index.asp" />
<add value="login.asp" />
</files>
</defaultDocument>
<rewrite>
<rules>
<rule name="Login" stopProcessing="true">
<match url="^login$"/>
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
</conditions>
<action type="Rewrite" url="login.asp"/>
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>https://stackoverflow.com/questions/42394383
复制相似问题