Redirecting a Website from http to https in cPanel
It is
very common to have SSL certificate in website now-a-days. In general, the
website is configured to access using http and https both separately. It is a
security hole to access such websites using http. For this reason, http to
https redirection is required. It can be achievable in some ways. The most
popular is using the .htaccess file.
Step 1: Login to cPanel
Step 2: Go to public_html under file
manager.
Step 3: Create a .htaccess file if it
is already not created. Add below lines.
RewriteEngine
On
RewriteCond
%{HTTPS} off
RewriteRule
^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Step 4: Save and close.
Now,
the website should be redirected from http to https.
Comments
Post a Comment