Question

Activating New Domains for One-Click Wordpress

So I run the following command and given a list of domains that I would like to activate HTTPS for. However, the domain I would like to activate HTTPS is example.com, instead of blog.example.com. How can I do that? Or will it be the same for both domain and sub-domain to get activated?

~# certbot --apache Saving debug log to /var/log/letsencrypt/letsencrypt.log Plugins selected: Authenticator apache, Installer apache

Which names would you like to activate HTTPS for?


1: blog.example.com 2: www.blog.example.com


Select the appropriate numbers separated by commas and/or spaces, or leave input blank to select all options shown (Enter ‘c’ to cancel):

I have checked out this: https://wordpress.org/support/article/changing-the-site-url/ but the instruction does not seem to be straightforward enough for my issue.

Thanks.

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello, @sawthinkar

Could you please let me know if you’ve already changed the domain name used for the WordPress site from blog.example.com to example.com? If that is correct you can also alter the Apache configuration file and change the domain from blog.example.com to example.com in the server block as well.

In this way certbot can issue a SSL Certificate for example.com as per your wish.

I will recommend you to create a snapshot of your droplet and also backup your data in order to have a working copy of your site (both files and database) in case something goes wrong.

If you haven’t changed the domain name yet, let me know and I can try to explain the process in details.

Regards, Alex