HostMonster Web Hosting Help

Wildcard SSL Certificates

hostmonster announced in November 2014 that it will no longer be accepting new shared Reseller hosting signups. As part of that announcement, hostmonster announced a partnership with ResellerClub wherein hostmonster is recommending ResellerClub as the hosting partner of choice for Reseller hosting.

This article will show you how to use your WildCard SSL Certificate, on your HostMonster hosting account, using mod_rewrite. This is required due to a limitation in WHM that only allows there to be one vitualhost entry.

Accessing the .htaccess file

The .htaccess file is located in the public_html folder. While you can use an FTP or SSH client to access the file, for this article we will be using the File Manger.
  1. Login to your HostMonster cPanel
  2. Click the "File Manager", located in the Files section of the cPanel.
  3. File Manager
  4. Choose to open the "Web Root (public_html/www)"
    Web Root

    Be sure to check the box "Show Hidden Files (dotfiles)."

  5. Show Hidden Files
  6. Right click the .htaccess file and choose "Edit" or "Code Edit

Setup the mod_rewrite rule

You will need to copy the following text into your .htaccess file. Please pay close attention to the comments (lines starting with #) so that you can properly setup the rewrite for your subdomains.

subdomain with your subdomain and with your domain name.

#.htaccess WildCard SSL
RewriteEngine On
RewriteCond %{HTTP_HOST} ^$
RewriteCond %{REQUEST_URI} !^/subfolder/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /subfolder/$1
RewriteCond %{HTTP_HOST} ^$
RewriteRule ^(/)?$ subfolder/index.php [L]

Once you have modified this code you may need to clear your browser cache to be able to see the redirect.

Knowledgebase Article 40,013 views bookmark tags: htaccess reseller ssl subdomain subfolder wildcard (updated 101 days ago)

Was this resource helpful?

Did this resolve your issue?

Please add any other comments or suggestions about this content:

Recommended Help Content

How to renew an existing SSL certificate--or purchase a new one, within your cPanel (updated 30 days ago)
Knowledgebase Article 48,165 views tags: cert certificate layer secure security socket ssl

Do you support wildcard subdomains or wildcard DNS entries? (updated 886 days ago)
Knowledgebase Article 81,103 views tags: dns domain subdomain wildcard zone

What files do you need to make your SSL certificate work on another account/server? (updated 1145 days ago)
Knowledgebase Article 23,159 views tags: certificate move ssl

Related Help Content

How to add a new SSL certificate for your different WM services. (updated 664 days ago)
Knowledgebase Article 19,452 views tags: ssl whm

I need to have an SSL 3rd Party Certificate installed for my domain. (updated 389 days ago)
Knowledgebase Article 142,761 views tags: certificate ssl

How do I use the free shared SSL Certificate? (updated 836 days ago)
Knowledgebase Article 222,260 views tags: certificate path shared ssl

How to reset the SSL certificates for your servers services (updated 346 days ago)
Knowledgebase Article 9,474 views tags: ssl whm

SSL/TLS Certificates and Addon Domains. (updated 683 days ago)
Knowledgebase Article 43,739 views tags: ssl

I need to have an SSL Self-Signed Certificate installed for my domain. (updated 676 days ago)
Knowledgebase Article 87,349 views tags: secure ssl

Where do I get a copy of the site seal for my SSL I purchased through HostMonster? (updated 947 days ago)
Knowledgebase Article 167,141 views tags: cert image logo seal secure ssl

How do I setup CubeCart to use an SSL Certificate? (updated 1953 days ago)
Knowledgebase Article 55,592 views tags: ssl