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 44,909 views bookmark tags: htaccess reseller ssl subdomain subfolder wildcard (updated 64 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 152 days ago)
Knowledgebase Article 55,112 views tags: cert certificate layer secure security socket ssl

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

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

Related Help Content

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

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

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

How to reset the SSL certificates for your servers services (updated 468 days ago)
Knowledgebase Article 11,820 views tags: ssl whm

SSL/TLS Certificates and Addon Domains. (updated 805 days ago)
Knowledgebase Article 47,324 views tags: ssl

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

This article will show a way to protect specific pages of your website with SSL. This may have benefits for SEO and can be used on pages that contain forms, shopping carts or any other page where users might enter sensitive information. (updated 68 days ago)
Knowledgebase Article 1,254 views tags: htaccess pages specific ssl

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