Turning on https for subdomain

@Rohit

You have had helped me with the following script for https:

Dear Rohit
#First redirect all Http request to https
#Ensure that we exclude any sub-domains

RewriteCond %{HTTP_HOST} ^(www\.)?myhotfb.com$ [NC]
RewriteCond %{HTTPS} off
RewriteRule ^ https://www.myhotfb.com%{REQUEST_URI} [NC,L,R]

#Secondly redirect all non-www to www

RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [NC,L,R]

 

The above script turns of https for subdomain, but I have a subdomain.myhotfb.com for which I want to have https working. I already have lets encrypt installed for the subdomain.myhotfb.com. What can be done? Any thoughts.