Redirect your website from http to https with www

Please watch this video: https://www.youtube.com/watch?v=MHNEUOEP2NY

To redirect your website from http to https, please follow the below steps:

 

  1. Log into cPanel
  2. Go to File Manager from Files section
  3. Go to public_html directory
  4. Click Settings from right upper side and tik Show hidden files
  5. Open .htaccess file and add the below codes

RewriteEngine On
RewriteCond %{HTTP_HOST} ^[^.]+\.[^.]+$
RewriteCond %{HTTPS}s ^on(s)|
RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

     6. Save the file. That's it

Now clear the browser cache and visit the website.

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Redirect your website from http to https

Please watch this video: https://www.youtube.com/watch?v=MHNEUOEP2NY To redirect your website...