Force HTTP to HTTPS Using .htaccess File
I have recently upgraded my site to use a SSL certificate to make sure my blog uses https on all pages. I will be creating a guide on how to complete this shortly. After upgrading I noticed that my site was still allowing users to visit http://jacob.gardiner-moon.co.uk and it was not forwarding to the https://jacob.gardiner-moon.co.uk address. I have resolved this by adding the following code to the .htaccess file in the root of my website directory. This will also add a 301 redirect on the http:// to the https:// page, this is very good for SEO purposes.