How to redirect from http:// to https://

Overview

If you add an add-on domain to mixhost or use the initial domain, you can access all of the following URLs by default.

Not SSL:

  • http://example.com
  • http://www.example.com

Using SSL:

  • https://example.com
  • https://www.example.com

If you want to unify to https://, please select from [A] to [D] below.

[A] Use the Really Simple SSL plugin (WordPress sites only)

In addition to redirecting from http to https, you can also fix internal links.

Installation Instructions for Really Simple SSL

[B] Use cPanel's Force HTTPS Redirect feature

Open the domain list from cPanel and turn on Force HTTPS Redirect for the domain you want to set.

https01.png

For addon domains with subdomains, the following message is displayed inside a black mark in the Force HTTPS Redirect field.

2022-04-01_10h03_56.png

Addon and parked domains inherit their HTTPS redirect status from their associated subdomain

The message is that the addon domain inherits the subdomain's settings.

In this case, you need to set up a redirect to your subdomain. The procedure is as follows.

STEP 1: Display the domain screen from cPanel.

STEP 2: Click the gear mark on the upper right and click "Show Associated Subdomains".

This will show the associated subdomains in the list

2022-04-01_10h04_23.png

STEP 3: Turn on Force HTTPS Redirect for the displayed associated subdomain.

[C] Use cPanel redirect function

It is also possible to unify the presence or absence of WWW together with the redirect from http to https.

STEP 1: Log in to cPanel.

Log in to cPanel.

STEP 2: Click Domain > Redirect.

8ee7a271f4c8239f61e7c7381d066e98-2.png

STEP 3: Make the desired settings and click Add.

* To redirect the entire site, check "Wildcard Redirect".

* If the following error occurs, the settings will conflict and the redirect will loop, making it impossible to register.
Please delete the relevant part of .hataccess and try again.

error.png

[D] Edit .htaccess

If you have complicated settings or if problems occur even if you set it from cPanel redirect, please edit .htaccess directly.
Please check here if .htaccess is not displayed in the file manager.
*Write the redirect description at the top of the .htaccess file.
*If you are not familiar with .htaccess, please use either [A][B][C] method.
*Detailed description method of .htaccess is not supported. Please note.

Was this article helpful?
12 out of 16 found this helpful