Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Redirect WWW to NON-WWW -
I have seen this question posted before with an answer that used to work but following the given instructions gives me errors:
# Determine your secondary URL ghost config url https://my-second-domain.com # Get Ghost-CLI to generate an SSL setup for you: ghost setup nginx ssl # Change your config back to your canonical domain ghost config url https://my-canonical-domain.com # Edit the nginx config files for your second domain to redirect to your canonical domain. In both files replace the content of the first location block with: return 301 https://my-canonical-domain.com$request_uri; # Get nginx to verify your config sudo nginx -t # Reload nginx with your new config sudo nginx -s reload
This method NO longer works and will throw errors out, I am unable to register my www domain.