redirect http to https

Started by rita1989, April 04, 2020, 04:44:00 PM

Previous topic - Next topic

rita1989

hello, i read that for redirecting http to https i need to edit my htaccess, but where to find it? thanks

aftabjaved62

Use this in .htacess

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

rita1989

thanks :) where do i find .htaccess in cwp? should i just go directly by terminal or is it possible to edit by the panel?

josemnunez

From the user you can do it as a redirect module and from the admin you can force https from the webserver domain editor