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:
- Access your Webflow project settings: Log in to your Webflow account and select the project you want to configure.
- Open the project settings: Click on the "Project Settings" tab at the top of the Designer interface.
- Go to the Hosting tab: In the left sidebar, click on the "Hosting" tab.
- Add your custom domain: Under the "Custom Domains" section, click on the "+ Add Custom Domain" button.
- Enter your domain: In the pop-up window, enter your custom domain without the "www" prefix (e.g., "example.com").
- Toggle the "Redirect all requests to primary domain" option: By default, this option is turned off. Toggle the switch to enable it.
- Save changes: Click on the "Save Changes" button at the bottom right of the pop-up window.
- 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").
- 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.
- 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.
- 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.
- 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:
- How do I set up a custom domain in Webflow?
- What are the benefits of using a custom domain in Webflow?
- Can I use a custom domain purchased from another registrar with Webflow?