Moving IIS7 url rewrite section out of the web.config file

后端 未结 1 351
既然无缘
既然无缘 2020-12-20 18:25

I have made a config section in my web.config file that has all rewrite rules like the following


        
            &l         


        
相关标签:
1条回答
  • 2020-12-20 19:31

    You can split your configuration into several files and include the parts into the main web.config file using the configSource attribute, e.g:

    web.config:

      <system.web>
        ...
        <profile configSource="profile.config" />
        ...
      </system.web>
    

    profile.config:

    <profile>
      <properties>
        <add name="Name" type="String" />
        <add name="Age" type="Int32" />
      </properties>
    </profile>
    

    See this blog post or this question for more information.

    0 讨论(0)
提交回复
热议问题