Control Web Panel

WebPanel => How to => Topic started by: harpreet9629 on January 23, 2017, 03:01:34 PM

Title: How to redicrect always on https
Post by: harpreet9629 on January 23, 2017, 03:01:34 PM
hi,

There is any way to redirect on https always. like as https://server-ip:2030 always.

Thanks
Title: Re: How to redicrect always on https
Post by: je2u on January 24, 2017, 11:20:01 AM
Add to htaccess

Code: [Select]
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} !=on [NC]
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
</IfModule>