Apache Https Redirect

To redirect requests from http to https, create the .htaccess file with the following:

RewriteEngine On
RewriteCond %{SERVER_PORT} !443
RewriteRule (.*) https://website.com/path [R]