Home>
I will ask how to write multiple redirects in

.htaccess.
We plan to use SSL, unify subdomains, and unify with www.

・ Redirect to subdomain (shop->www)
Http->Redirect to https
・ No www->www available
Can you tell me if the ".htaccess" description method for the above three processes is correct?
I am sorry for the rudimentary question to describe multiple processes for the first time, thank you.

Applicable source code
1 RewriteEngine On
2 RewriteRule. * Http://example.com [R = 301, L]
3 RewriteEngine on
4 RewriteCond% {HTTPS} off
5 RewriteRule ^ (. *) $Https://exapmle.com/$1 [R = 301, L]
6 RewriteEngine on
7 RewriteCond% {HTTP_HOST} ^ (exapmle \ .com) (: 80)?
8 RewriteRule ^ (. *) Https://www.exapmle.com/$1 [R = 301, L]