IIS Host Headers and non WWW to WWW

前端 未结 1 1165
闹比i
闹比i 2021-01-27 19:52

I know there\'s a bunch of examples on how to redirect your non www to your www site, but I\'m not using any rewrite utils/ISAPI.

On my Windows 2008R2 box, I have severa

1条回答
  •  后悔当初
    2021-01-27 20:35

    I guess there are two ways. One is to create a rewrite rule through the IIS manager.

    The other is to setup the system.webserver section of the web.config as follows:

      
    
        
          
            
            
              
              
                
              
              
            
    
            
    
          
        
    
        
        
    
        
    
      
    

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