Canological redirect using certbot

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is:
uniquescents.com.au

I ran this command:

It produced this output:

My web server is (include version):
nginx version: nginx/1.18.0 (Ubuntu)

The operating system my web server runs on is (include version):
Ubuntu 20.04.5 LTS

My hosting provider, if applicable, is:
AWS Ec2

I can login to a root shell on my machine (yes or no, or I don't know):
yes

I'm using a control panel to manage my site (no, or provide the name and version of the control panel):
no

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):
certbot 2.4.0

Hello as title suggest is it possible to do canological redirect using certbot? I want www.uniquescents.com.au redirect to uniquescents.com.au

1 Like

No. You need to add one manually. Just add one to your port 443 server block which would then handle original requests to https://www... and ones you redirected from http.

Use the same "if" statement format Certbot used for http->https with adjustments to the "return" statement to be your non-www https host.

3 Likes