Redirect http to https with cPanel Print

  • SSL, cPanel, Redirect
  • 6

SSL is standard these days for web hosting.  Google prefers it and gives your website a level of confidence for your visitors.

At Uptime we provide SSL certificates for free via LetsEncrypt but this doesn't mean that visitors to your website will automatically get the SSL connection to your website.

Some links to your website may still start with http:// instead of https:// which is required to transfer your website content securely.

You can force all requests to your website to redirect to https automatically by updating your .htaccess file.  Follow these steps"

  1. Log in to you cPanel account
  2. In the Files section click on File Manager
  3. In File Manage navigate to /public_html (or the root folder of your add-on domain)
  4. You should see a file called .htaccess.  If you don't, click on the Settings button at the top right and ensure you have ticked Show Hidden Files (dotfiles)
  5. Single click on .htaccess and then click on Edit at the top of the screen (if you get a warning window about encoding you can ignore it.
  6. At the end of the file contents copy and paste the below.  Make sure you don't edit anything else.
    RewriteEngine On
    RewriteCond %{HTTPS} !=on
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE] 
  7. Click on Save Changes at the top right and your website will now redirect all requests to SSL.

If you get stuck or need help, please open a support ticket

Was this answer helpful?

« Back