Forcing "https:" on your "http" site

You *MUST* have purchased and installed an SSL certificate for your website.  Please contact us if you need to do that.

Once installed you should be able to go to your site via either http://<yoursite> or https://<yoursite>.

What if you wanted to force it to put the "https://" in front?

Here's how.

Log into your cpanel by going to http://cpanel.<yourwebsite>  or http://<your site hom>/cpanel and entering your credentials.

Once there you can use the FileManager to access the .htaccess file in your /public_html (or the appropriate html directory for any parked or sub-domains).

Please make a backup of the .htaccess file.  Mistakes can mess up the operation of your entire site.  Or please ask us to make the changes for you.

Once inside the file, look for this section:

# Various rewrite rules.
<IfModule mod_rewrite.c>
  RewriteEngine on

Then right after the "RewriteEngine On" please add the following if it's not already there:

# force everything to https (tekops)
RewriteCond %{HTTP_HOST} ^<yoursite>\.com [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.<yoursite>.com/$1 [R,L]

RewriteCond %{HTTP_HOST} ^www\.<yoursite>\.com [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.<yoursite>.com/$1 [R,L]

Please make sure to replace <yoursite> with the proper domain name (and change the .com to .net, etc., if you have a different TLD extension).

Then save the file and try accessing your site with  'http://' and againw ith "https://".  In both cases it should go to "https://..." and show a padlock or some other "secure" indicator in your browser.

Please let us know if you have any questions.

Customer Service
SubSpaceNetworks, Inc.
http://www.subspacenetworks.com
[email protected]
  • 0 Utilisateurs l'ont trouvée utile
Cette réponse était-elle pertinente ?

Articles connexes

DNS AND EMAIL CONFIGURATION

This document is broken into section based on the type of service you are using. Please look...

ONE-CLICK-INSTALL for Hundreds of Web Applications

OVER 200 SOFTWARE MODULES MAY BE AVAILABLE TO YOU AND GROWING! If you have the right...

HIDE WEBSITE BEHIND PASSWORD SCREEN

Sometimes it is advantageous to hide your website. Some examples include: If you are doing...

IPhone Configuration

Summary This guide shows you how to set up a POP3 email account on your Apple iPhone 4, Apple...

Creating a Sub-Domain

Setting up a SubDomain A sub-domain is a way to break your domain into sections if you want....