Forcing Weebly to use SSL

Each Weebly plan hosted by Thexyz includes SSL and this guide will show you how to enforce https over http. If you choose a Weebly plan that is hosted at Weebly, then only the business plan will support SSL.

  1. Select 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));
}
</script>

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. 

  • 14 Users Found This Useful
Was this answer helpful?

Related Articles

Markdown

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

Webmail keyboard shortcuts

When you login to Webmail, your premium webmail account includes various keyboard shortcuts....

How to edit the htaccess file

The htaccess file is found at the root of your websites 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...