Knowledgebase Home / How to set up an SSL & configure WordPress to use HTTPS by default

How to set up an SSL & configure WordPress to use HTTPS by default

By default, WordPress is not configured to use an SSL Certificate. In this guide, we’ll show you how to install an SSL Certificate and configure your WordPress website to always use HTTPS.

First, you’ll want to get an SSL Certificate installed. If you’re hosting with us, you have two options.

  1. Commercial SSL Certificate:
  2. Let’s Encrypt SSL Certificate:

If you decide on purchasing a commercial SSL Certificate through our website, you can also use the following guide on the installation process:

After you’ve chosen the type of SSL Certificate you’d like to use, you’ll need to do some configuration within WordPress. There’s two steps to configuring WordPress to use HTTPS.

For the first step, you’ll need to log into cPanel and go to the File Manager as shown in the image below.



After you’ve gotten into the File Manager through cPanel, you’ll want to locate the .htaccess (dot htaccess) file. In the event you do not see this file, please take a look at this guide here to enable hidden files:

If you still do not see the file, you may need to create it. You can use the “+File” option and create the .htaccess (dot htaccess) file – make sure to include the “.” in the beginning of the file name.

If the file already exists, you can proceed with right clicking the file & clicking Edit as shown below.



After you’ve opened the .htaccess (dot htaccess) file in the editor, please enter the code into it that is listed below at the top of the file.

Code to add:

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

After you’ve added the new code shown above, you’ll need to click “Save Changes” to save those changes you’ve made to the .htaccess (dot htaccess) file.

Next, you’ll need to log into your WordPress admin dashboard to edit the URL’s under Settings > General as shown below. By default, they will have HTTP only in the URL. You will need to change that to HTTPS as shown below.



After you’ve changed the URL’s shown there to have HTTPS in them, scroll down and click “Save Changes”. That’s it! Your WordPress site should now be working with HTTPS and should always be forced to use HTTPS.

Should you have any problems with this guide & you’re hosted with us, please feel free to reach out to our support desk.


How useful was this post?

Click on a star to rate it!

As you found this post useful...

Follow us on social media!

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

If the steps above listed in this article do not resolve your issue, please feel free to open a support ticket and we’d be happy to take a look. Looking for better web hosting? Sign up today and take 50% off your first month with promo code: 1stmonth50

Our Guiding Principles

  • Provide consistent, stable and reliable web hosting services.
  • Ensure rapid ticket response and quick resolutions to issues.
  • Never saturate or over-provision servers to ensure stability and speed for our customers.
  • Use only high quality enterprise-class hardware to ensure minimal downtime from hardware failures.
  • Provide clear pricing with no hidden fees or gotchas.