Moving my wordpress blog to https

I received a SSL certificate for this blog. Switching from http to https is more work than expected, but fortunately, with the help of some tools, it is just a matter of minutes.

The easiest part: Change the URL scheme of the blog address in Settings -> General tab to HTTPS.

The next step is, to enforce HTTPS by advising the www server to redirect every query. On the blog, i found the required nginx configuration:

server {
    listen 80 default_server;
    listen [::]:80 default_server;
    server_name _;
    return 301 https://$host$request_uri;

Thanks to a blog entry (, i became aware of the problem that any entries with HTTP already stored in the database must be changed as well. Fortunately, with the help of the wordpress plugin Better Search Replace this is a matter of a few minutes. Since we make detailed changes in the database itself, a backup if it is definitely a good idea. After installing and activating, the plugin is accessible via Tools. It seems to be important, to replace GUIDs as well, so this checkbox should be selected. The job is done by entering the old address and the new address, by selecting all relations in the database, and finally by starting the task. A dry run can be selected first.