When I search for the subdomain.domain.es
I'm redirected to domain.es.
Code in htaccess file:
RewriteEngine On
RewriteBase / RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://dominio.es/$1 [R=301,L]
My hosting company gave me the htaccess so my web was redirected from http to https but I have no clue of what any of this code means. I'm new to web programming so I hope you can help.
Thanks so much!