/*Total website redirect to HTTPS*/ ExpiresActive On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L] /*Redirect specific page to HTTPS*/ ExpiresActive On RewriteCond %{SERVER_PORT} 80 RewriteCond %{HTTPS} !=on [NC] RewriteCond %{REQUEST_URI} /page_path/ RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]