There are 2 types of domains you can publish your site to: your Webflow staging subdomain (e.g., yoursite.webflow.io) and custom domains (e.g., yourdomain.com). The Webflow staging subdomain is useful to test custom code and get approval on your site’s design before pushing your site live to your custom domain.
If you want to prevent your webflow.io site from appearing in search engine results, you can disable search engine indexing of the Webflow staging subdomain.
In this lesson, you’ll learn:
- How to edit your staging subdomain
- How to publish to your staging subdomain
- How staging subdomain cookies work
How to edit your staging subdomain
You can edit your subdomain under Site settings > General tab > General settings.
Note: If you change your site’s subdomain, both your staging subdomain (e.g., yoursite.webflow.io) and your site’s read-only link will be replaced instantly. Any read-only links you’ve previously shared will no longer function.
How to publish to your staging subdomain
To publish your site to the staging subdomain without publishing to your custom domain:
- Open your site in the Designer or go to Site settings
- Click Publish
- Check the Webflow staging subdomain (e.g., yoursite.webflow.io)
- Uncheck your custom domain
- Click Publish to select domains
Important: When you publish from the Editor, your site will publish to both the webflow.io staging subdomain and any custom domain(s) you’ve added to your site. To publish changes only to your staging subdomain, publish your site from the Designer or Site settings.
How staging subdomain cookies work
In April 2023, we submitted the Webflow staging domain to the Public suffix list. This increases the security and discoverability of websites published to the staging domain.
Beginning in June 2023, this change will also reset analytics cookies on URLs ending with webflow.io. If your site is only published to your Webflow staging subdomain — and not also published to a custom domain — your site’s analytics cookies will be reset in June 2023. This means that cookies for your site’s analytics tools (i.e., Google Analytics, Google Optimize, and Facebook Pixel) will be reset and existing visitors that return to your site won’t be recognized as “returning visitors” on their first visit following the cookie(s) reset.
If you want to preserve your site’s cookies on your staging subdomain, you can add the following script to your site: