Change URL Rewrite Rule in Web.Config from Code C#

后端 未结 3 1907
轮回少年
轮回少年 2021-01-02 08:49

I want to modify rewrite rule from C# code. Url Rewrite rule is resides in web.config file.


    
               


        
3条回答
  •  耶瑟儿~
    2021-01-02 09:08

    step 1:- download urlrewrite2.exe Here

    Step 2:- write you logic in web.config

    
      
        
          
            
              
              
              
            
          
        
        
          
            
            
              
            
            
          
        
      
    
    

    step 3:- Put you .txt file in App_Code folder or another place for which you have given the address in web.config , txt file will have data like

    **technology,expert/search-expert.aspx?CatId=1

    counselling-personal-growth,expert/search-expert.aspx?CatId=2** etc**

提交回复
热议问题