To redirect the non-www version of your domain to the www version in Webflow, you don’t need to publish the site twice. You just need to set your default domain in your Webflow Project Settings.
1. Set the Default (Canonical) Domain to the www Version
- Go to Project Settings in your Webflow Dashboard.
- Click the Hosting tab.
- Scroll down to the Custom Domains section.
- You’ll see both versions of your domain (e.g., www.example.com and example.com) listed.
- Click the “Make default” star icon next to www.example.com.
- This tells Webflow to route all traffic (including from non-www) to the www version automatically.
2. Verify DNS Settings Are Correct
Your DNS settings need to support both the non-www and www versions for the redirect to work properly.
- For the non-www domain, set two A records pointing to:
- (a) 75.2.70.75
- (b) 99.83.190.102
- For the www domain, create a CNAME record pointing to: proxy-ssl.webflow.com
These DNS records ensure both domain versions connect correctly to Webflow, enabling the redirect.
3. Publish the Site Once
- Click “Publish” in the top-right corner of your Webflow Designer or Dashboard.
- Select your custom domain with both www and non-www listed, then click Publish.
You only need to publish once. Webflow will automatically redirect users from the non-www version to the www version because of the default domain you set.
Summary
To redirect non-www to www in Webflow, set www as the default domain under Hosting settings and ensure correct DNS records for both versions are in place. No need to publish separately—Webflow handles the redirect automatically.