If you have a secure socket layer certificate (SSL) on your website, you can automatically redirect visitors to the secured (HTTPS) version of your site for a secure connection. StormerHost.com hosting uses cPanel and there is a simple tool in cPanel that will help you accomplish this.
Enforcing SSL for Main domain and Addon domain:
- Open a new tab and type whynopadlock.com.
- Enter your domain name in the field provided and Click on the (I’m not a robot) to complete the recaptcha then Select Test Page.
- Click on the More Info at the far end of Force HTTPS.
- Copy Code provided in the rectangular grey box.
- Log into your cPanel. In the file section, Click on File Manager
- Select the public_html folder
- Search for .htaccess file. If not found, Click on Settings on the upper right corner.
- Select Show Hidden File and click on Save.
- Note: If you don’t find the .htaccess file after enabling the “show hidden files”, you can create a new one by Clicking Add File icon in the top left corner. Enter the name of the File i.e: .htaccess in the first file and Click on Create New File.
- Right Click on the .htaccess file then Select Edit.
- Click Edit again when the pop-up appears.
- Paste the Code you copied from the whynopadlock.com and Click on Save Changes.
- Go back to whynopadlock.com and retest the url.
Scroll down to the bottom and Click on the (I’m not a robot) to complete the recaptcha the Select Test Page - HTTPS have been verified.
- Enforcing SSL for Addon domains:
Enter your domain name in the field provided and Click on the (I’m not a robot) to complete the recaptcha then Select Test Page. - From the Test, SSL have not been activated unlike the Main domain.
- First activate SSL Status. Login to your cpanel in the search bar, type SSL/TLS Status.
- Click on Run AutoSSL.
- Green Padlock Icon will confirm if it’s successful.
- Go back to whynopadlock.com.
Scroll down to the bottom and Click on the (I’m not a robot) to complete the recaptcha the Select Test Page. - Click on the More Info at the far end of Force HTTPS
- Copy Code provided in the rectangular grey box.
- Log into your cPanel. In the file section, Click on File Manager
- Select the public_html folder
- Search for Addon domain directory i.e.(sh-demo.com)
- Right Click on the .htaccess file then Select Edit.
- Click Edit again when the pop-up appears.
- Paste the Code you copied from the whynopadlock.com and Click on Save Changes.
- Go back to whynopadlock.com and retest the url.
Scroll down to the bottom and Click on the (I’m not a robot) to complete the recaptcha the Select Test Page - HTTPS have been verified.
Your domain should now be using HTTPS.
————————–
If you have an existing .htaccess file:
- Do not duplicate RewriteEngine On.
- Make sure the lines beginning RewriteCond and RewriteRule immediately follow the already existing RewriteEngine On.