Osclass forums
Support forums => General help => 3.6.x => Topic started 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.
-
use this htaccess:
<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:
define('WEB_PATH', 'https://sitio.com/');
-
Or:
#SSL START
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.website.com/$1 [R=301,L]
#SSL END