Setting up WordPress to use SSL¶
Configuring WordPress to use encrypted connections takes about 10-30 minutes in most circumstances: complexity arises not in the process itself, but when something goes awry or needs further adjustment. Fused offers free certificates to all clients so that you can do this with ease!
By completing these steps, your WordPress administrative section & site should now be visible encrypted, and you'll see a slight improvement in your google search rankings.
For larger sites, we recommend reaching out to Fused or your developer(s) for paid assistance & pre-planning a window to swap to SSL.
Digest of steps¶
- Ensuring your certificate is functional before getting underway
- Backing up your website
- Adjusting your WordPress site url
- Performing a database search to update url references
- Testing the site for functionality
Before we get started, you'll need access to your WordPress administrative panel.
Ensuring your certificate is functional¶
Before commencing, let's ensure your site has an SSL certificate available to use.
Open a browser, and navigate to your domain name — for ex., if your domain is example.com, your domain with ssl would be https://example.com
You should see a green lock symbol next to your url in the address bar. If you do, proceed to the next steps below. If you don't, contact us!
Adjusting your WordPress site url¶
- Login to your WordPress administrative panel. Often, that's your site's address appended with /wp-admin/ — for ex., http://example.com/wp-admin/
- Navigate to 'Settings > General'
- Adjust the WordPress Address & Site Address (URL) so that they reference https:// instead of http:// — for ex., if your site url listed is http://www.example.com, you'll change it to https://www.example.com
- Your site should now be wielding ssl, but you'll want to perform the steps below to catch make sure all of your internal links still work.
Performing a search/replace on your database¶
We're now going to swap out all of those old url references to the new url within your database.
Installing Better Search Replace¶
- Login to your WordPress administrative panel (if you're already there, skip this step).
- Navigate to
Plugins > Add new
- Search for
better search replace. You're looking for the one by
Delicious Brains. Select
Install now, and then activate it once the install link changes to activate.
Now, follow the steps below:
Using Better Search Replace¶
- Backup your site before performing this step
- Within your WordPress administrative section, navigate to
Tools > Better Search Replace.
- Within the
Search forfield, enter your old site's url. For ex., if your blog's non-ssl url is http://example.com/blog, you'll enter that into the field.
- In the
Replace withfield, you'll enter what the new ssl url will be. For ex., if your non-ssl url is http://example.com/blog, you'll enter https://example.com/blog
- In the select tables field, select all of the available fields.
- Run the search/replace. You should see towards the top that 12 or more tables were searched, with a number of cells that were found to be replaced.
- Now, uncheck
Run as dry runand perform the search/replace again.
- Your site should now be fully using ssl.
Testing your website¶
After performing the steps above, you'll want to test your site for functionality.
- Navigate to your site in a browser.
- Parse through the site like a regular user, ensuring a green/secure reference is in the address bar.
- Test any contact forms, shopping carts, or key functions of your site.
Celebrate! :) :thumbsup: