I have a domain.co and just bought domain.com and want to use SSL on it.
Having in mind this H5BP apache config for HTTP to HTTPS redirect:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
</IfModule>
Once in place, will it automatically start redirecting all HTTP pages from domain.co to HTTPS pages on domain.com or I have to modify rule to something like this or similar?
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://domain.com/$1 [R=301,L]
</IfModule>