Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Filter out www out of subdomain

Discussion in 'Bind/DNS/Nameserver' started by mindofmedia, Dec 12, 2017.

  1. mindofmedia

    mindofmedia Registered

    Feb 1, 2015
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator

    I have a website called it's a WordPress multi site where a SSL certificate is installed.

    But I also have server subdomain on that domain (the other sites in the multi site) but without SSL certificate.

    Right now it is configured that when you go to that you will be forced to use the SSL connection.
    The subdomain doesn't have that requirement. But when a visitors goes to https:// subdomain. it will get a SSL waring (as you can expect).
    Also when you would go you will get redirected to wp-signup .php

    Is there anyway to we can all prevent this?
    So if I go I will be redirected to http:// subdomain.
    if I go to https or http I will go to http:// subdomain.

    But since it is a multi site it must be something general, because if we create a new site (= a new subdomain) also that site needs to that.

    Here is my current htaccess file
    RewriteCond %{HTTP_HOST} ^$ [NC]
    RewriteRule ^(.*)$$1 [R=301,L]
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    # add a trailing slash to /wp-admin
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    # END WordPress
    #1 mindofmedia, Dec 12, 2017
    Last edited by a moderator: Dec 13, 2017
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator

    One approach is to ensure a SSL certificate is installed for each subdomain. The following thread includes a workaround you may find helpful:

    SOLVED - AutoSSL and WordPress Multisite

    Thank you.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice