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



    
        
            
            
        
		
		
 
		
		
		
		
		
		
		
		
                
                    
                    
                        
                    
                    
                
		
    

Need help with Linux Server or WordPress? We can help!

Leave a Reply

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