User Tools

Site Tools


This tutorial doesn't explain all about the HTTPS, SSL or TLS protocols, this is something you have to research on your own and discuss with your host to have them enable it for you. Once you have it enabled on your server then you can use the HTTPS protocol for your Etano site.

In order for HTTPS to work with the Etano script you need to do the following:

Open your includes/ file and look for this line:

define('_BASEURL_','');// protocol required (http:// )

And change the http to https

Open your .htaccess file and add the following:

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*)$1 [R,L]

This forces the HTTPS protocol to be used when visitors try to use http, and if they also type in, they will also end up at

IMPORTANT - make sure that the baseurl in your defines and .htaccess files are consistent with or without the WWW prefix.


NOTE - if you happen to be using code in your .htaccess to force the WWW prefix in your URL, such as:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^ [NC]
RewriteRule ^(.*)$$1 [R=301,L]

You should remove it as having 2 different URL rewrites will conflict with each other.

For more info also see: The .htaccess File

https_ssl_tls.txt · Last modified: 2016/05/21 11:20 by admin