Author Topic: redirect http to https  (Read 750 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
redirect http to https
« on: April 04, 2020, 04:44:00 PM »
hello, i read that for redirecting http to https i need to edit my htaccess, but where to find it? thanks

Offline
*
Re: redirect http to https
« Reply #1 on: April 04, 2020, 05:53:38 PM »
Use this in .htacess

Code: [Select]
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]

Offline
*
Re: redirect http to https
« Reply #2 on: April 04, 2020, 06:37:28 PM »
thanks :) where do i find .htaccess in cwp? should i just go directly by terminal or is it possible to edit by the panel?

Offline
*
Re: redirect http to https
« Reply #3 on: April 04, 2020, 07:27:22 PM »
From the user you can do it as a redirect module and from the admin you can force https from the webserver domain editor