Angular 2 Hosted on IIS: HTTP Error 404

前端 未结 4 1619
北荒
北荒 2020-12-13 07:05

I have simple app with one component that expects certain parameters from url. there is only one route in the application:

const appRoutes: Routes = 
                


        
4条回答
  •  鱼传尺愫
    2020-12-13 07:43

    We have to make IIS fall back to index.html by adding a rewrite rule.

    Step 1: Install IIS URL Rewrite Module

    Step 2: Add a rewrite rule to web.config

       
        
          
            
              
                
                  
                  
                    
                       
                  
                  
                
              
            
          
        
    

提交回复
热议问题