Loading


Advertisement:

Author Topic: how to install script for ssl secured site ?  (Read 214 times)

elite

  • Newbie
  • *
  • Posts: 1
how to install script for ssl secured site ?
« on: December 18, 2016, 01:19:52 pm »
how to install script for ssl secured site ? original .htaccess file is needed?   
installation guide osclass 3.6.1 to site with ssl please or original .htaccess file for redirect http to https
 please help me solve problem.   

tito

  • Newbie
  • *
  • Posts: 42
Re: how to install script for ssl secured site ?
« Reply #1 on: December 18, 2016, 03:35:47 pm »
use this htaccess:

Code: [Select]
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

and this to config.php:

Quote
define('WEB_PATH', 'https://sitio.com/');

Aficionado

  • Hero Member
  • *****
  • Posts: 4023
  • Good things come to those who wait
Re: how to install script for ssl secured site ?
« Reply #2 on: January 05, 2017, 03:10:35 pm »
Or:

Code: [Select]
#SSL START
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.website.com/$1 [R=301,L]
#SSL END