How to redirect all HTTP requests to HTTPS

When you add an SSL certificate to your website, the URL visitors use to view your site changes from HTTP to HTTPS. The 'S' ensures that your connection is encrypted. After adding an SSL certificate you should force all URLs on your site to automatically redirect to the HTTPS version.

After SSL Certificate has been successfully installed in most cases a redirection from HTTP to HTTPS is needed.

  • Login to Cpanel
  • Click File Manager

File Manager

  • On the left side click on public_html

Public html

  • On the right side of the browser click on Setting

Setting public httml

  • Select Show Hidden Files (dotfiles)
  • Show hidden files in cpanel
  • Look for .htaccess If you can not find it create one, on the left top click on File and add the name .htaccess and hit Enter or save it.
  • Inside .htaccess add the following 3 lines and click save

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$$1 [R,L]

Make sure you modify with your actual website domain.

All traffic will be redirected to HTTPS now.

If you still face issues please contact support.



Also, see:

How to install WordPress using the One-Click Installer

  • SSL, SSL Certificate, https, redirect traffic to https
  • 1050 Users Found This Useful
Was this answer helpful?

Related Articles

Force HTTP to HTTPS on .htaccess

To redirect from HTTP to HTTPS using .htaccess please follow the below documentation:   Login...

How do I install an SSL certificate?

Whatever changes you do to your website we recommend you to have a fresh backup. So please make...

What is SSL Certificates

SSL Certificates are fundamental to internet security. They are used to establish an encrypted...