This site utilizes JavaScript to function correctly. Looks like it's disabled on your browser. Please enable it for your best experience.

For instructions on enabling JavaScript, click here

Skip to main content

Just Host Web Hosting Help

Custom Reseller Login Page

In November 2014 Just Host announced that it will no longer be accepting new shared Reseller hosting signups. As part of that announcement, Just Host announced a partnership with ResellerClub wherein Just Host 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

Warning! Using this tool will replace the .htaccess file in the home directory.
  1. Login to your Just Host reseller account
  2. Choose WHM
  3. Scroll down to the Plugins section
  4. Click the Reset login domains plugin.
  5. 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.
Knowledgebase Article 80,493 views bookmark tags: reseller


Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

This article will explain how to create MIME types.
Knowledgebase Article 47,031 views tags: create custom extensions files mime types

Explanation as to where a reseller and their customers will login to access their sites
Knowledgebase Article 52,138 views tags: cpanel reseller whm

How to create a package on your Reseller account.
Getting Started Article 108,182 views tags: add hosting limit package reseller

Related Help Content

Using Your Custom Name Servers for Domains Registered With a 3rd Party.
Knowledgebase Article 125,275 views tags: dns reseller

A quick guide to using your Reseller account
Getting Started Article 111,016 views tags: reseller started whm

How to specify the default Name Servers on a reseller account
Getting Started Article 93,759 views tags: nameserver reseller server servers whm

How to install the provided WildCard SSL on a reseller account
Knowledgebase Article 57,589 views tags: reseller ssl

Prices for Reseller Hosting and Reseller related addons
Knowledgebase Article 81,500 views tags: faq prices reseller

How to install ClientExec or WHMCS on your Reseller account.
Knowledgebase Article 49,050 views tags: clientexec reseller whmcs

Explanation of the cause of the warning and how to remove it.
Knowledgebase Article 39,483 views tags: reseller root

How to setup and use Custom Name Servers with your Domain name
Video "How-to" Tutorial 218,803 views tags: cpanelutilities custom

** Google ad credits are only available to customers in the United States, Canada, and the United Kingdom at this time.

¹ VAT (Value Added Tax) is not included in our advertised price and will be charged separately and itemized on invoices and billing information. Standard VAT rates based on EU Member State regulations may apply. Learn more.