{"id":21701,"date":"2017-03-08T07:37:49","date_gmt":"2017-03-08T13:37:49","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=21701"},"modified":"2022-06-03T03:42:16","modified_gmt":"2022-06-03T08:42:16","slug":"how-to-redirect-http-traffic-to-https-in-nginx-and-apache","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-redirect-http-traffic-to-https-in-nginx-and-apache\/","title":{"rendered":"How to Redirect HTTP Traffic to HTTPS in Nginx and Apache"},"content":{"rendered":"
<\/div>

\"http<\/p>\n

We will show you how to redirect HTTP traffic to HTTPS in Nginx<\/a> and Apache<\/a>. You should always use HTTPS instead of HTTP to protect your website, even if it doesn’t handle sensitive communications. The main reasons to use HTTPS are:<\/p>\n