To redirect the non-www version of your domain to the www version in Webflow without publishing the website in two places, follow these steps:
1. Access Project Settings
- Go to Project Settings for the relevant project within your Webflow dashboard.
2. Manage Custom Domains
- Navigate to the Hosting tab.
- Scroll down to the Custom Domains section.
3. Add Domain Variants
- Add Both Versions: Ensure that both the www and non-www versions of your domain are added (e.g.,
www.yourdomain.com and yourdomain.com).
4. Set Default Domain
- Set the Default Domain: Click on the option to make www.yourdomain.com the default. This will ensure that traffic to any variations of your domain will resolve to the www version.
5. DNS Configuration
- Update DNS Settings: Check that your DNS settings reflect the A records and CNAME provided by Webflow.
- Ensure the A records (a) 75.2.70.75 and (b) 99.83.190.102 are set up for the non-www domain.
- Point the CNAME of the www version to
proxy-ssl.webflow.com.
6. Verify Connection
- Ensure Webflow displays a green checkmark next to both versions of your domain, indicating the connection is successful.
Summary
Connect both www and non-www versions of your domain in Webflow, set the www version as default in Project Settings, and update DNS records according to Webflow’s guidance to ensure proper redirection without dual publication.