Redirect http to https with cPanel


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?

Still need help?

Our friendly support team are ready to offer assistance with any issues you may be encountering.
Click the button below to open a ticket:
Open Ticket

 WP Squared Hosting

WordPress Hosting on WP Squared
Experience the best in Australian WordPress hosting with this powerful, easy-to-use, WordPress platform.

 Build Your Website

Sitejet Hosting
Build your site fast with a drag and drop editor with no coding required. 140+ quality, templates to get you started.

 Register Domains

It all starts with your domain name
Find the perfect domain and register now with our competitive pricing on all extensions.

 Web Hosting

Fast, local, secure hosting
Full featured hosting on cPanel with multiple server locations around the country.
« Back