Report this

What is the reason for this report?

How can I switch my Ghost 1 Click blog from non-www to www?

Posted on December 9, 2020

I saw many answers on the internet. Mainly - changing the default file in sites-enabled. ( https://www.digitalocean.com/community/tutorials/how-to-redirect-www-to-non-www-with-nginx-on-ubuntu-14-04 this didn’t work for me) Can someone tell me what steps should I follow. I added SSL from letsencrypt when installing ghost and added A records for both non-www and www versions to work. I just want to auto-redirect. I’m a newbie to Ghost.



This textbox defaults to using Markdown to format your 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.

I solved this. I changed www.domain.com.conf and www.domain.com-ssl.conf . Now it properly redirects to https://www.mydomain.com . But I get SSL_ERROR_BAD_CERT_DOMAIN error. My SSL doesn’t work. I know it’s supped to work for both www and non www versions. I have already added A records. When I remove above lines from conf files, both non-www and www work fine with https. What should I do to keep SSL for my www version

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.