Bluehost Web Hosting Help
Custom Reseller Login Page
In November 2014 Bluehost announced that it will no longer be accepting new shared Reseller hosting signups. As part of that announcement, Bluehost announced a partnership with ResellerClub wherein Bluehost is recommending ResellerClub as the hosting partner of choice for Reseller hosting.
To learn more about this change please see: Reseller Hosting Services FAQ
This article will explain what is needed to create a custom login page for your reseller account.
Note: You must have the WildCard SSL Certificate installed on your account for this to work. Please see How to Purchase a Comodo Private SSL to see how to install the SSL Certificate.
Setup the .htaccess file
For your custom login page to work you will need to ensure that the .htaccess file in your home directory is setup correctly. There are two ways of doing this.
Use the Reset login domains tool in WHM
- Login to your Bluehost reseller account
- Choose WHM
- Scroll down to the Plugins section
- Click the Reset login domains plugin.
- Click Yes to replace the .htaccess file in your home directory, removing any custom code that might be there now.
Manually modifying the .htaccess file
If you would prefer to modify the .htaccess file manually, located in the home directory, here is the code you will need to use:# This is the code that handles login., cpanel., and webmail. RewriteEngine On RewriteCond %{HTTP_HOST} ^login\. [NC,OR] RewriteCond %{HTTP_HOST} ^cpanel\. [NC,OR] RewriteCond %{HTTP_HOST} ^webmail\. [NC] RewriteCond %{REQUEST_URI} !^/(cgi-sys|rhost_login) RewriteRule ^(.*)$ /cgi-sys/login.cgi [NC,L]Note: Any changes to this code will cause the login process to fail.
Creating the custom login page
The custom login page will need to be placed in the ~/public_html/login/default.html file. Your customers would login at http://example.com/login/.
The following are the required lines that must be included in your form. You may style the page as you wish, but the following information must be included.
Warning: You must have the WildCard SSL Certificate installed on your account for this to work. Please see "How to Purchase a Comodo Private SSL" to see how to install the SSL Certificate.
<form action="/cgi-sys/login.cgi" method="POST">Note: The action must be /cgi-sys/login.cgi and the method must be POST
<input class="lti" name="user" value="">Note: The user field, the name must be user. class and value are optional, value should be set to "" if used at all
<input class="lti" name="pass" type="password" value="">Note: The pass field, the name must be pass and the type must be password. class and value are optional, value should be set to "" if used at all.
<input type="hidden" name="goto_uri" value="/cpanel">Note: The name MUST be goto_uri, and the value MUST be "/cpanel" including the preceding / and the type MUST be hidden. If this field is not present or set properly, the login will not work.
<input id="login_button" type="submit" value="Login">Note: The submit button, type must to be submit, however any other attributes can be modified.
<span class="error" id="general_error"></span>Note: This tag is optional but highly recommended. Any errors generated during the login process are sent to this element. You may stylize this as you wish, but the ID must be general_error.
Recommended Help Content
Create Custom MIME Types
This article will explain how to create MIME types.
Where to Log In to Your Reseller Account
Explanation as to where a reseller and their customers will login to access their sites
Reseller - Add a package
How to create a package on your Reseller account.
Related Help Content
Configuring Name Servers for Your Reseller Main Domain Registered With a 3rd Party.
Using Your Custom Name Servers for Domains Registered With a 3rd Party.
Getting Started - Reseller
A quick guide to using your Reseller account
Specifying default Name Servers for a reseller account
How to specify the default Name Servers on a reseller account
Installing the WildCard SSL on a Reseller account
How to install the provided WildCard SSL on a reseller account
What billing software is provided for Resellers?
How to install ClientExec or WHMCS on your Reseller account.
cPanel says "You are logged in using the root or reseller password."
Explanation of the cause of the warning and how to remove it.
Reseller Hosting Prices
Prices for Reseller Hosting and Reseller related addons
Login Management
Accessing your account is as easy as entering your domain name and password on the login screen, or clicking one of our Single Sign-On options.