---

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.

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis