How do I configure my Webflow website with a custom domain to redirect correctly when using the root domain instead of the "www" prefix?

Published on
September 22, 2023

To configure your Webflow website with a custom domain to redirect correctly when using the root domain instead of the "www" prefix, you need to follow these steps:

  1. Access your Webflow project settings: Log in to your Webflow account and select the project you want to configure.
  2. Open the project settings: Click on the "Project Settings" tab at the top of the Designer interface.
  3. Go to the Hosting tab: In the left sidebar, click on the "Hosting" tab.
  4. Add your custom domain: Under the "Custom Domains" section, click on the "+ Add Custom Domain" button.
  5. Enter your domain: In the pop-up window, enter your custom domain without the "www" prefix (e.g., "example.com").
  6. Toggle the "Redirect all requests to primary domain" option: By default, this option is turned off. Toggle the switch to enable it.
  7. Save changes: Click on the "Save Changes" button at the bottom right of the pop-up window.
  8. Set up DNS records: After saving the changes, Webflow will provide you with DNS records to configure on your domain registrar's website or DNS provider. You will need to set up two CNAME records, one for the root domain (e.g., "@") and one for the "www" subdomain (e.g., "www").
  9. Configure DNS records: Log in to your domain registrar's website or DNS provider and access the DNS settings for your domain. Create the two CNAME records with the values provided by Webflow.
  10. Wait for DNS propagation: DNS changes may take some time to propagate, typically between a few minutes to several hours. Be patient and wait for the changes to take effect.
  11. Verify domain setup: In the Webflow hosting settings, click on the "Check DNS Configuration" button to verify that your DNS records are correctly set up.
  12. Test the redirection: Open a new browser tab and enter your custom domain without the "www" prefix (e.g., "example.com"). The website should redirect to the "www" version of the domain (e.g., "www.example.com") automatically.

By following these steps, you can configure your Webflow website with a custom domain to redirect correctly when using the root domain instead of the "www" prefix. This ensures that your website's URL structure is consistent and improves user experience and SEO rankings.

Additional Questions:

  1. How do I set up a custom domain in Webflow?
  2. What are the benefits of using a custom domain in Webflow?
  3. Can I use a custom domain purchased from another registrar with Webflow?