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

  • 15 A felhasználók hasznosnak találták ezt
Hasznosnak találta ezt a választ?

Kapcsolódó cikkek

Markdown

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...

Make Thexyz your homepage

You can quickly get to Thexyz Webmail or Thexyz Start Page every time you open your browser by...