Install the SSL Server Certificate Files
- Login to cPanel
- Click SSL/TLS Manager > Certificates (CRT) > Generate, view, upload or delete SSL certificates
- In the Upload a New Certificate section click the Browse button and locate your SSL Server Certificate file your_domain_com.txt.
- Click the Upload button.
- Click the Go Back link to return to SSL/TLS Manger.
Setup the Domain
- Click SSL/TLS Manager > Setup a SSL certificate to work with your site. If this option is not available to you your ISP may have disabled it and you will need to contact them to complete your SSL setup.
- From the Domain drop down menu select the domain that will use the SSL Certificate. The system will attempt to Fetch the SSL Certificate and corresponding private key.
- Open SSL_Intermediate.txt in Notepad or other simple text editor (not Word). Copy-and-paste all the contents of the GeoTrust_Intermediate.txt file into the Ca Bundle (CABUNDLE) box.
- Click on Install Certificate. You should receive a message that the certificate was successfully installed. If you receive an error you may need to contact your web hosting provider for additional support.
How to set your subdomain SSL
- Open public_html/.htaccess and add the following code
RewriteCond %{SERVER_PORT} ^443$
RewriteCond %{HTTP_HOST} ^abc\.domain\.com$ [NC]
RewriteCond %{REQUEST_URI} !^/abc/
RewriteRule ^(.*) /abc/$1/abc/ is your subdomain folder under public_html.