IIS redirect site to HTTPS

Written by Yujin Boby

Edit in WordPress

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