> ## Documentation Index
> Fetch the complete documentation index at: https://kb.hosting.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Configuring WordPress to always use SSL

> You have purchased and installed an SSL certificate, and now you want to use it with WordPress. Learn how to setup HTTPS for your WordPress site!

This article describes how to configure a WordPress site to always use secure (SSL) connections.

<Warning>
  **Important**

  This article assumes that you already have a valid, functioning SSL certificate installed on your web site. If you do not have an SSL certificate for your site yet, please see our [SSL certificate options](https://hosting.com/domains/ssl-certificates/).
</Warning>

## Enabling SSL for WordPress

To enable SSL for WordPress, you must update two URL settings. To do this, use **one** of the following methods:

* Use the WordPress administration interface.
* Use phpMyAdmin to update the database directly. You may need to use this method if you are unable to access the WordPress administration interface.

### Method #1: Use the WordPress administration interface

To use the administration interface to update the WordPress URL settings, follow these steps:

1. Log in to WordPress as the administrator.
2. On the left-hand menu, click **Settings**, and then click **General**.
3. Under **General Settings**, in the **WordPress Address (URL)** text box, replace the current URL with the secure URL. For example, type `https://www.example.com`, where ***example.com*** represents your domain name.
   > 🚧 Important
   >
   > * Make sure you type the correct URL, or your WordPress installation will be inaccessible.
   > * Make sure the URL begins with *https\://*.
   > * Make sure the URL does not end with a forward slash ( **/** ).
4. In the **Site Address (URL)** text box, replace the current URL with the secure URL. For example, type `https://www.example.com`, where ***example.com*** represents your domain name.
   > 🚧 Important
   >
   > * As in step 3, make sure you type the correct URL, or your WordPress installation will be inaccessible.
   > * Make sure the URL begins with *https\://*.
   > * Make sure the URL does not end with a forward slash ( **/** ).
5. Click **Save Changes**.

### Method #2: Use phpMyAdmin

To use phpMyAdmin to update the WordPress URL settings, follow these steps:

1. Log in to cPanel.
   > 📘 Note
   >
   > If you do not know how to log in to your cPanel account, please see [this article](/docs/accessing-cpanel).
2. In the **Databases** section of the cPanel home screen, click **phpMyAdmin**.
3. In the left-hand pane of phpMyAdmin, click the WordPress database. A list of tables in the database appears.
4. Under the **Table** heading, click the **wp\_options** table. A list of data rows appears.
5. Under the **option\_name** heading, locate **siteurl**, and then click **Edit**.
6. In the **option\_value** text box, replace the current URL with the secure URL. For example, type `https://www.example.com`, where ***example.com*** represents your domain name.
   > 🚧 Important
   >
   > * Make sure you type the correct URL, or your WordPress installation will be inaccessible.
   > * Make sure the URL begins with *https\://*.
   > * Make sure the URL does not end with a forward slash ( **/** ).
7. Click **Go**. phpMyAdmin saves the changes in the table.
8. Under the **option\_name** heading, locate **home**, and then click **Edit**.
   > 📘 Note
   >
   > You may have to scroll through more than one page of data in the **wp\_options** table to locate the **home** row. To do this, click the **>** icon, or you can click **Show all** to view all of the table's rows simultaneously.
9. In the **option\_value** text box, replace the current URL with the secure URL. For example, type `https://www.example.com`, where ***example.com*** represents your domain name.
   > 🚧 Important
   >
   > * As in step 6, make sure you type the correct URL, or your WordPress installation will be inaccessible.
   > * Make sure the URL begins with *https\://*.
   > * Make sure the URL does not end with a forward slash ( **/** ).
10. Click **Go**. phpMyAdmin saves the changes in the table. WordPress should now use the secure *https\://* URL.

## More information

For more information about using SSL with WordPress, please visit [https://developer.wordpress.org/advanced-administration/security/https/](https://developer.wordpress.org/advanced-administration/security/https/).

## Related articles

* [Introduction to SSL](/docs/introduction-to-ssl)
* [Changing the WordPress site URLs](/docs/changing-the-website-url-in-wordpress)
