User Tools

Site Tools


https_ssl_tls

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/defines.inc.php file and look for this line:

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

And change the http to https

Open your .htaccess file and add the following:

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

This forces the HTTPS protocol to be used when visitors try to use http, and if they also type in www.yoursite.com, they will also end up at https://yoursite.com

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

https://yoursite.com

OR

https://www.yoursite.com

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} ^yoursite.com [NC]
RewriteRule ^(.*)$ http://www.yoursite.com/$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