For redirecting my sub domain http:
to https:
I used below code in .htaccess
file but it didn't work.
RewriteEngine on
RewriteCond %{HTTP_HOST} ^subdomain\.example\.com$ [NC]
RewriteRule ^$ https://subdomain.example.com/ [R=301,NE,NC,L]
Also, I have already changed from http
to https
in WordPress site URL, but still it is not working.
Please guide me how to fix it.