How to enable SSL on your website

We now offer free SSL encryption to all of our clients!

For WordPress:

  • From your dashboard, go to plugins > add new.
  • Search for Really Simple SSL
  • Install the plugin
  • Activate the plugin
  • Now click the enable SSL button
  • Done!

 

For Modx:

If you haven’t already done so, rename ht.access to .htaccess in your public_html directory.

To enable SSL you simply need to un-comment 2 lines, and change out the example domain name to your domain name. You can either edit this file through your cPanel file manager, through an SSH connection, Or download the file, edit it, and re-upload it.

No matter the method, the changes made to .htaccess will be the same. In .htaccess, find this section:

# Rewrite secure requests properly to prevent SSL cert warnings, e.g. prevent
# https://www.domain.com when your cert only allows https://secure.domain.com
#RewriteCond %{SERVER_PORT} !^443
#RewriteRule (.*) https://example-domain-please-change.com/$1 [R=301,L]

Now simply uncomment (delete the # at the beginning of the line) the last 2 lines, and change example-domain-please-change.com to your domain name.

For example, if your domain name is hanglefthosting.com, your edited .htaccess file would look like this:

# Rewrite secure requests properly to prevent SSL cert warnings, e.g. prevent
# https://www.domain.com when your cert only allows https://secure.domain.com
RewriteCond %{SERVER_PORT} !^443
RewriteRule (.*) https://pineconehosting.com/$1 [R=301,L]

Now save the .htaccess file, and you are all set!

To edit in cPanel

  • log in to your cPanel account at cpanel.yourdomain.com
  • Go to the File Manager
  • Navigate to the public_html directory
  • Select .htaccess and click the edit button (or right click>edit)
  • Edit and save

To edit directly via SSH:

  • SSH in to the server: ssh username@hanglefthosting.com -i path/to/key/yourkey -p 2222
  • Navigate to your .htaccess file: cd public_html/
  • Open your .htaccess file: nano .htaccess
  • Edit the file, and press control+o to save it, the control+x to exit.

To edit locally:

  • SFTP on to the server
  • Download the .htaccess file
  • Open it in a plain text editor
  • Edit the file, and save
  • Re upload the file to the server, replacing the old one

Please contact us if you need any assistance.

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *