Author Topic: How to redicrect always on https  (Read 925 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
How to redicrect always on https
« 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

Offline
*
Re: How to redicrect always on https
« Reply #1 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>