ABN 15 089 554 718
Free SSL Certificates

Web Hosting Support FAQ

How to setup SSL on a non WordPress website

If you’re using other website software set the website domain URL settings to include “s” in the url eg. https://yourdomain.com.au/

If you’re not using any website software you can force SSL using an htaccess file in your public_html folder.

You can first try going to the Domains page in cpanel and enable Force HTTPS Redirect. That will often fix the problem.

Otherwise, or if using a Subdomain or Addon domain you can copy and paste this code into your htaccess file to force SSL on all pages of your website.

—————————–
RewriteOptions inherit
RewriteEngine on

# If the hostname is NOT yourdomain.com.au
RewriteCond %{HTTP_HOST} !^yourdomain\.com\.au [OR]
# Or if non SSL request
RewriteCond %{HTTPS} !=on
# 301 redirect to the same resource on yourdomain.com.au
RewriteRule (.*) https://yourdomain.com.au%{REQUEST_URI} [L,R=301]
——————————

The first bit of the code,
RewriteCond %{HTTP_HOST} !^yourdomain\.com\.au [OR]
is not SSL related. It simply forces any parked domain to redirect to the main domain.

Its not a universal piece of code, it may need tweaking for a specific website, but it is quite versatile. If you search google you will find lots of examples of how to do it.