How to enable HTTPS for your website
This guide will explain how to enable HTTPS on your website. For customers using LCN web hosting.
Let’s get started…
Enable HTTPS from your LCN account
With LCN we offer a quick way to set up your redirect straight from your LCN account saving you the hassle of fiddling with your website files or site plugins.
To do this you will need to…
- Log in to your LCN account and move to your Control Panel.
- Click on the domain you have added an SSL to.
- Click on your hosting package.
- Now click SSL Redirect from the options on the left.
- Read through the information provided, when you are happy to proceed select Enabled
- Lastly click Update
That’s it! You have now enabled HTTPS.
If you have any problems from this you may wish to disable the feature and perform the redirect manually as outlined below. You may also need to check your site for mixed content as explained in our guide here.
Enabling HTTPS using .htaccess
You can configure your site to use HTTPS by using a .htaccess file – for further information on .htaccess files see our guide here.
Please note: these instructions don’t apply to websites running WordPress or other content management systems – A guide for WordPress can be found here.
Enabling HTTPS for all pages within your site
- Create a file using a text editor such as Notepad.
- Save the file as: .htaccess (without any additional file extensions).
- Enter the following lines of text within the file:
RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteCond %{REQUEST_URI} !.well-known/acme-challenge
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
- Save the file and upload it to the web folder of your site.
Please note: Instructions on uploading the file to your website can be found here.
Enabling HTTPS for a specific folder within your site
- Create a file using a text editor such as Notepad.
- Save the file as: .htaccess (without any additional file extensions).
- Enter the following lines of text within the file, changing the URL within the ‘RewriteRule’ line to set your domain and folder name:
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} folder
RewriteRule ^(.*)$ https://www.yourdomain.com/folder/$1 [R,L]
- Save the file and upload it to the specified folder you would like to be secured.
That’s it! You’ve enabled HTTPS on your website.