Forcing Weebly to use SSL

Usually with Weebly sites, the SSL option is only available for business and performance packages. However, each Weebly plan hosted by Thexyz includes SSL and this guide will show you how to enforce https over HTTP with free SSL. If you choose a Weebly plan that is hosted at Weebly and attached to Weebly sites, then only the business plan will support SSL.

  1. If your site is not defaulting to https, you can enable SSL by selecting Pages from the menu and then select the page you wish to redirect by clicking on it. 

Weebly SSL

2.  Select SEO Settings and then paste the below code on the Header Code box. 

Weebly SSL

3. Here is the Javascript code to add to the header of each Weebly page:

<script>if (document.URL.substring(0,5) == "http:") {
window.location.replace('https:' + document.URL.substring(5));

Please note that placing this code in the general header of the Weebly site will not work and it will need to be placed on each page you wish to force the https redirect. 

  • 15 Benutzer fanden dies hilfreich
War diese Antwort hilfreich?

Verwandte Artikel


You can now add markdown to support tickets at Thexyz. Emphasis **bold** *italics*...

How to edit the htaccess file

The htaccess file is found at the root of your website's files. To access your website files you...

MySQL commands to speed up your WordPress database

phpMyAdmin is the most common way to manage a WordPress database. It is important to backup and...

Setting up WebDav with Nextcloud and ownCloud

ownCloud 10 introduced some changes to connecting with WebDav. This tutorial will show you how to...

How to change Roundcube Webmail Password

To change your email account password to Roundcube Webmail with our Hepsia servers please follow...