User Tools

Site Tools


https_ssl_tls

This is an old revision of the document!


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

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 probably remove it as having 2 different URL rewrites could potentially conflict with each other.

https_ssl_tls.1463739766.txt.gz · Last modified: 2016/05/20 05:22 by admin