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:- Log in to WordPress as the administrator.
- On the left-hand menu, click Settings, and then click General.
- 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 ( / ).
- 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 ( / ).
- Click Save Changes.
Method #2: Use phpMyAdmin
To use phpMyAdmin to update the WordPress URL settings, follow these steps:- Log in to cPanel.
📘 Note If you do not know how to log in to your cPanel account, please see this article.
- In the Databases section of the cPanel home screen, click phpMyAdmin.
- In the left-hand pane of phpMyAdmin, click the WordPress database. A list of tables in the database appears.
- Under the Table heading, click the wp_options table. A list of data rows appears.
- Under the option_name heading, locate siteurl, and then click Edit.
- 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 ( / ).
- Click Go. phpMyAdmin saves the changes in the table.
- 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.
- 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 ( / ).
- Click Go. phpMyAdmin saves the changes in the table. WordPress should now use the secure https:// URL.