In this tutorial, we will see how to redirect website from http to https on Apache servers. Redirecting HTTP to HTTPS 1. Redirect All Web Traffic If you have existing code in your .htaccess, add the following: