my one website is on https and all other websites on non-https means http if i visit any pages of http website with https it is redirect to https website i am using WHM version 11.50.6 and Server OS is CentOS 6.8
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule .* https://domainname.co.uk/$1 [L,R=301]
RewriteEngine On
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} !^domainname\.co\.uk$
RewriteRule .* http://%{HTTP_HOST} [L,R=302]