If you have added and enabled an SSL certificate for your domain, you will need to configure your site, or pages within your site to use HTTPS URLs.

HTTPS URLs begin with https:// - this prefix to the URL indicates that the connection to the web server is secured and encrypted with SSL. Once you have added and enabled an SSL certificate for your website - you will then need to configure your site or the required pages within your site to use HTTPS.

Please note that these instructions will not apply for sites running Wordpress or other content management systems - contact the LCN support team if you need further assistance with enabling HTTPS for your site.

Enabling HTTPS using .htaccess

You can configure your site to use HTTPS by using a .htaccess file - see the following page for further information on .htaccess: What is a .htaccess file?

Enabling HTTPS for all pages within your site

To configure your site to use HTTPS for all pages, create a file using a text editor such as Notepad and save the file as: .htaccess (without any additional file extension). Enter the following lines of text within the file:

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Save the file and then upload it to the 'web' folder for your site - see the following page for instructions on uploading the file to your website: How to upload files to your website with FTP

Enabling HTTPS for a specific folder within your site

If you want to enable HTTPS for a specific folder within your site, use the following text within the .htaccess file and change 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, then upload it to the specified folder - rather than placing the file into the 'web' directory for your site.

Need a hand? Search over a hundred step-by-step support guides