Using Siteground hosting to always force redirect WordPress to https / SSL

Nathan WrigleySecurityLeave a Comment

I’m just trying out Siteground as host. I only signed up yesterday, so I cannot really say whether or nor they will be something that I can recommend. However, so far, so good.

One thing that I really like is the fact that they offer secure connections (https / SSL) with one click thanks to Let’s Encrypt, which I wrote about in another post.

To achieve security for your site login into your cPanel in Siteground and scroll down to the ‘Security’ section. There you’ll see the Let’s Encrypt icon…

Let's Encrypt

Click the icon and select your domain from the dropdown menu, then wait a couple of minutes for the script to run and for the Let’s Encrypt servers to issue your certificate.

That’s all there is to it!

One other thing that you might want to do is to update your .htaccess file with the following…

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://example.com/$1 [R,L]

Be sure to alter the domain so that it is on fact your domain.