Redirect http to https via htaccess file
Redirect http to https via htaccess file
You can force an HTTPS connection on your website by adding these rules in your website’s .htaccess file:
depends what you use as cpanel or if you use CWP panel
you can find in this path
cd /home/user/public_html/
named us “.htaccess”
add following lines under your generated .htaccess file
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Save it and check your website 🙂
if you need any other assistance feel free to contact us in private for further details.