How to unify the presence or absence of "www"

Overview

If you add an add-on domain to mixhost or use the initial domain, you can access it with the following two types of URLs as standard.

Without SSL:

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

When using SSL:

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

If you want to unify either one, you can set it from cPanel.

If you want to unify without www

We will show you how to set it if you want to unify it in a form like http://example.com.

STEP 1: Log in to cPanel.

Click here to learn how to log in to cPanel.

STEP 2: Click Domain > Redirect.

WTC01.png

STEP 3: Set as below.

WTC02.png

  1. Configuring redirect domains
    Select the domain you want to unify without www.
  2. redirect to
    Enter the URL without www in the following format.
    Without SSL: http://example.com
    When using SSL: https://example.com
  3. www.redirect
    Choose to redirect only to www.

STEP 4: Click Add.

The setting is completed.

If you want to unify with www

We will show you how to set it if you want to unify it in a form like http://www.example.com.

STEP 1: Log in to cPanel.

Click here to learn how to log in to cPanel.

STEP 2: Click Domain > Redirect.

WTC01.png

STEP 3: Set as below.

WTC03.png

  1. Configuring redirect domains
    Please select the domain you want to unify with www.
  2. redirect to
    Please enter the URL with www in the following format.
    Without SSL: http://www.example.com
    When using SSL: https://www.example.com
  3. www.redirect
    Do not redirect Select www.

STEP 4: Click Add.

The setting is completed.

About errors

If the following error occurs, it will not be possible to register because the settings will conflict and the redirect will loop.

Please delete the relevant part of .hataccess and try again.

WTC04.png

Edit .htaccess

If you have complicated settings or if problems occur even if you set it from the cPanel redirect, please edit .htaccess directly.
Write the redirect description at the top of the .htaccess file.

Please note that the detailed description method of .htaccess is not supported.
Please refer to our support policy for details on what is supported.

Was this article helpful?
2 out of 4 found this helpful