Webflow sync, pageviews & more.
NEW

How can I set up a custom domain in Webflow and ensure that the URL properly redirects to the new domain?

TL;DR
  • Connect your custom domain in Webflow's Hosting settings and add both yourdomain.com and www.yourdomain.com.
  • Update DNS by adding two A records for the apex domain and a CNAME for www pointing to proxy-ssl.webflow.com.
  • Set www.yourdomain.com as the default domain to enable automatic 301 redirects from the non-www version.
  • Publish your site and verify redirection using tools like httpstatus.io.

To set up a custom domain in Webflow and ensure proper URL redirection, follow these essential steps for configuration and domain pointing.

1. Connect Your Custom Domain in Webflow

  • Go to Webflow Dashboard and open the specific project.
  • Click Project Settings.
  • Navigate to the Hosting tab.
  • Scroll down to Custom Domains and enter your domain (e.g., www.yourdomain.com and yourdomain.com).
  • Click Add to save.

2. Add DNS Records at Your Domain Registrar

  • Log in to your domain registrar (e.g., GoDaddy, Namecheap, Google Domains).

  • Locate the DNS settings for your domain.

  • Add the following records:

  • A Records (point apex domain, yourdomain.com):

    • Type: A
    • Host: @
    • Points to: (a) 75.2.70.75, (b) 99.83.190.102
      (Add both A records)
  • CNAME Record (for www.yourdomain.com):

    • Type: CNAME
    • Host: www
    • Points to: proxy-ssl.webflow.com
  • Save the DNS changes. These may take several minutes to propagate (up to 48 hours in some cases).

3. Set Default Domain and Enable Redirect

  • Go back to Webflow → Project Settings → Hosting.
  • Under the Custom Domains section, look for your listed domains.
  • Check the box for the www version (e.g., www.yourdomain.com) and click Make default. This ensures all traffic redirects to www.
  • Webflow automatically sets up the 301 redirect from non-www to www if you’ve added both versions.

4. Publish Your Website

  • In the top right of the Webflow Designer or from Project Settings, click Publish.
  • Choose to publish to your custom domain and optionally to Webflow’s staging domain (e.g., your-site.webflow.io).

5. Confirm Proper Redirection

  • Visit both yourdomain.com and www.yourdomain.com.
  • Ensure yourdomain.com automatically redirects to www.yourdomain.com.
  • Use tools like https://httpstatus.io/ to verify the 301 redirect is active.

Summary

To set up a custom domain in Webflow:

  • Connect your domain under Hosting settings.
  • Update DNS records with two A records and one CNAME.
  • Set the www version as default and Webflow will redirect the non-www version.
  • Publish your site and verify the redirect is working with a status checker.
Rate this answer

Other Webflow Questions