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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Removing SSL cert from Parked Domains or disabled https for them

Discussion in 'Security' started by e_k_, Oct 27, 2016.

Tags:
  1. e_k_

    e_k_ Registered

    Joined:
    Oct 27, 2016
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Turkey
    cPanel Access Level:
    Root Administrator
    Hi,

    I have a main domain and it has 66 parking domains.

    I installed a SSL certificate for my main domain and cpanel said to me:

    Yes, it is right, when I visited the my parking domains, browsers show warning messages.
    So, my questions are:

    Are there any way to disable SSL certificates for parked domains?

    ---

    or

    ---

    Are there any way to force using http instead of https for parked domains?

    For example using .htaccess

    Some details for our .htaccess files:

    We use a .htaccess redirection code in public_html like this:
    Code:
    Options +FollowSymLinks -MultiViews -Indexes
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteCond %{HTTP_HOST} ^88\.88\.88\.88$ [NC,OR]
    RewriteCond %{HTTP_HOST} ^([a-z.]+)?mydomain\.com$ [NC]
    RewriteCond %{HTTP_HOST} !^www\. [NC]
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ [URL]https://www.mydomain.com/$1[/URL] [R=301,L]
    
    Our parking domains use some redirection files under /parking folder. We have a .htaccess under this file too like this:
    Code:
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
    RewriteRule ^(.*)$ [URL]http://%1%{REQUEST_URI}[/URL] [R=301,QSA,NC,L]
    RewriteCond %{HTTP_HOST} ^(.*)
    RewriteRule ^(.*)$ [URL]http://www.mydomain.com/%1?language=EN[/URL] [L,NC,QSA]
    
    
    Thank you very much for your helps
     
    #1 e_k_, Oct 27, 2016
    Last edited by a moderator: Oct 27, 2016
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Have you considered converting the parked domains to addon domain names so they can have their own SSL certificates through the AutoSSL feature? This would prevent the warning message in the browser, and still allow you to define the document root for the domain names. There's a comparison between the two domain types at the bottom of the following document:

    Aliases - Documentation - cPanel Documentation

    Thank you.
     
Loading...

Share This Page