IIS redirect site to HTTPS

To force a site to always use HTTPS, add following content to web.config file.

                
                    
                    
                        
                    
                    
                

Here is full web.config file for a web site that use WordPress and Force SSL



    
        
            
            
        
		
		
 
		
		
		
		
		
		
		
		
                
                    
                    
                        
                    
                    
                
		
    

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *