Remove HTML extension with web config permanently

前端 未结 3 979
北海茫月
北海茫月 2020-12-13 22:19

I am trying to remove html extension from pages using web.config. Below is the code i am using in web.config file


  
    

        
3条回答
  •  执念已碎
    2020-12-13 22:22

    If you want to do this on a per-website basis using the local IIS server on Windows 10, install the URL Rewrite module and then put this in web.config in the root of your virtual directory:

    
    
        
            
                
                    
                    
                    
                        
                        
                            
                            
                            
                        
                        
                        
                    
                    
                        
                        
                            
                        
                        
                        
                    
                
            
        
    
    

提交回复
热议问题