---

Redirect HTTP to HTTPS in Apache

In Apache, the preferred way to redirect HTTP to HTTPS is to configure the 301 redirect in the domain’s virtual host.