Apache Redirect NON-SSL (http) to SSL (https)

Apache Redirect NON-SSL (http) to SSL (https)

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}