Redirection from http to https

bhawanisingh

Administrator
Staff member
You can simply add below code in your .htaccess file to redirect your domain:
Code:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
You can login into your cpanel account and create .htaccess file:
Login to cpanel >> File manager >> public_html >> Here you can create .htaccess file
 
Top