Control Web Panel

WebPanel => Installation => Topic started by: rita1989 on April 04, 2020, 04:44:00 PM

Title: redirect http to https
Post by: rita1989 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
Title: Re: redirect http to https
Post by: aftabjaved62 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]
Title: Re: redirect http to https
Post by: rita1989 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?
Title: Re: redirect http to https
Post by: josemnunez 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