How to force HTTPS for my domain?


  • Applies to: Grid
    • Difficulty: Easy
    • Time Needed: 10
    • Tools Required: Account Center access
  • Applies to: DV
    • Difficulty: Easy
    • Time Needed: 10
    • Tools Required: Account Center access
  • Applies to: Shared Hosting
    • Difficulty: Easy
    • Time Needed: 10
    • Tools Required: Account Center access
  • Applies to: Managed WordPress
    • Difficulty: Easy
    • Time Needed: 10
    • Tools Required: Account Center access

Overview

When installing an SSL, you will likely want to automatically redirect your users to the HTTPS version of your website (https://example.com vs http://example.com). If they are not, then it's possible that your site visitors will be navigating your website without actually utilizing your SSL. The following guide will provide guidance on how you can force HTTPS for your domain.

Before Starting

It's important to remember that before forcing your site to HTTPS you will want an SSL installed on your site. If you require an SSL, below are instructions to how you can purchase an SSL from Media Temple:

Plesk

  1. Log into the domain control panel in Plesk.
  2. Click Hosting Settings.
    p-1.png
  3. Ensure that the Permanent SEO-safe 301... option is selected.
    p-2.png
  4. Click Apply to save your changes.
  5. That's it! Your website should be automatically redirected to https.

cPanel

  1. Log into the cPanel account for your domain. cPanel account for your domain.
  2. Click Domains.
    cp-1.png
  3. Ensure Force HTTPS redirect is enabled.
    cp-2.png
  4. That's it! Your website should be automatically redirected to https.

WordPress

phpMyAdmin

  1. Log into phpMyAdmin phpMyAdmin phpMyAdmin phpMyAdmin for your domain.
  2. Select wp_options.
    wp-1.png
  3. Click the pencil icon and update both the siteurl and home tables.
    wp-2.png
  4. Update http to https. Then click Go save your changes.
    wp-4.png
  5. That's it! Your website should be automatically redirected to https.

Plugin

  1. As an alternative, WordPress users can install a plugin such as Really Simple SSL.
  2. Do note, some of these plugins require you to have installed an SSL first before they will function fully.

.htaccess

If you have access to your .htaccess file, you can add a simple mod_rewrite rule to add automatically redirect to https. We have a detailed article on the topic located below: