Osclass forums

Support forums => General help => 3.6.x => Topic started by: elite on December 18, 2016, 01:19:52 pm

Title: how to install script for ssl secured site ?
Post by: elite 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.   
Title: Re: how to install script for ssl secured site ?
Post by: tito 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/');
Title: Re: how to install script for ssl secured site ?
Post by: Aficionado 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