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 41,018 views bookmark tags: htaccess reseller ssl subdomain subfolder wildcard (updated 127 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 57 days ago)
Knowledgebase Article 49,788 views tags: cert certificate layer secure security socket ssl

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

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

Related Help Content

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

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

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

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

SSL/TLS Certificates and Addon Domains. (updated 709 days ago)
Knowledgebase Article 44,594 views tags: ssl

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

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

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