ASP.NET Url重写映射
我正试图在ASP.NET中重新编写url。我有两个rewritemaps.config文件rewritemaps1.config和rewritemaps2.config,我不得不将它们一分为二,因为配置文件太大,IIS无法处理 现在,在web.config中,我需要为重写器包含这两个映射,但在配置中只能包含一个映射 我的web.config如下所示:ASP.NET Url重写映射,asp.net,url-rewriting,configuration-files,Asp.net,Url Rewriting,Configuration Files,我正试图在ASP.NET中重新编写url。我有两个rewritemaps.config文件rewritemaps1.config和rewritemaps2.config,我不得不将它们一分为二,因为配置文件太大,IIS无法处理 现在,在web.config中,我需要为重写器包含这两个映射,但在配置中只能包含一个映射 我的web.config如下所示: <rewrite> <rewriteMaps configSource="rewrite
<rewrite>
<rewriteMaps configSource="rewritemaps1.config"></rewriteMaps>
<rules>
<rule name="Redirect rule1 for Redirects">
<match url=".*" />
<conditions>
<add input="{Redirects:{HTTP_HOST}{REQUEST_URI}}" pattern="(.+)" />
</conditions>
<action type="Redirect" url="http://{C:1}" appendQueryString="false" redirectType="Permanent"/>
</rule>
</rules>
</rewrite>
有没有办法同时包含这两种配置-
提前谢谢