I have registered a website and bought an SSL certificate, installed it and did some mod_rewrite rules to have all my traffic go to https://example.com
. So all is working nicely from that perspective.
I also went to Google Search Console and added/verified all the www
, non-www
and https
, https://www
sites. But when I go to preferred domain, I don't see the option for https. So I just decided to go with the example.com
one. Is there anything I need to do? Do I need to add 301 redirects? Or how do I check I did it right?
example.com
as the preferred domain if you are serving the bare domain is the correct thing to do. TBH I don't think there is anything more you can do in this respect. Include HTTPS in your sitemap etc. – MrWhite Jan 22 '16 at 9:48RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://%{SERVER_NAME}/$1 [R,L] </IfModule>
– BlackSky86 Jan 25 '16 at 21:00R
flag toR=301
to make it permanent. ie.[R=301,L]
. – MrWhite Jan 25 '16 at 21:07