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 43,199 views bookmark tags: htaccess reseller ssl subdomain subfolder wildcard (updated 27 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 116 days ago)
Knowledgebase Article 53,096 views tags: cert certificate layer secure security socket ssl

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

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

Related Help Content

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

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

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

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

SSL/TLS Certificates and Addon Domains. (updated 768 days ago)
Knowledgebase Article 46,295 views tags: ssl

I need to have an SSL Self-Signed Certificate installed for my domain. (updated 26 days ago)
Knowledgebase Article 94,942 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 31 days ago)
Knowledgebase Article 621 views tags: htaccess pages specific ssl

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