{"section":"tutorials","requestedLocale":"en","requestedSlug":"configuring-the-store-domain","locale":"en","slug":"configuring-the-store-domain","path":"docs/en/tutorials/account-management/accounts/configuring-the-store-domain.md","branch":"main","content":"Domain-related settings are necessary for a web address to be correctly routed to a VTEX store. This guide covers the following topics:\n\n* [Store address structure](#store-address-structure)\n* [Rules for main hosts](#rules-for-main-hosts)\n* [How to register a new host](#registering-a-new-host)\n* [How to change the host from an active store](#changing-host)\n\n## Store address structure\n\nThe store's address is composed of the following elements:\n\n![url-diagram-en](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/account-management/accounts/configuring-the-store-domain_1.png)\n\n| Element | Description | Example |\n|---|---|---|\n| Protocol | Communication protocol used on the internet. | `https://` |\n| Subdomain | Prefix added to the domain name. | `www` |\n| Domain | Exclusive name used to locate and identify your store on the internet. | `mystore` |\n| Top Level Domain (TLD) | Suffix after the period of a domain name. | `com` |\n| Domain name / Pure domain / Root domain | Domain + top level domain. | `mystore.com` |\n| Host | Subdomain + domain + top level domain. | `www.mystore.com` |\n\nOnce you have defined your store's domain, you need to configure the main host in the VTEX Admin to communicate between the address and the store's content.\n\n## Rules for main hosts\n\nBefore proceeding with your store's address configuration, consider the following guidelines to ensure a successful implementation:\n\n* **CDN provider:** VTEX uses **Cloudfront** as CDN provider in the stores. Your store's domain must not be registered with Cloudfront by the time you perform the pointing. Otherwise, there will be a failure in the CDN provisioning for your store and, consequently, at go-live. So, if you have the store domain registered on the **Cloudfront** platform, delete it before pointing the DNS to VTEX.\n* **Main address:** The store must have a single main host, which will point to the VTEX servers. This host **must contain a subdomain**, which can be `www` or others.\n* **Additional addresses:** Any additional addresses, whether with a different domain or a version without subdomains, must be redirected to the single main host, as described in the Redirects section.\n\n### Host examples\n\nCheck out the host examples below and see which ones can be used as the main host:\n\n| Host example | Can be used as a host: yes (✔️) or not (❌) | Description |\n|---|---|---|\n| `www.mystore.com` | ✔️ | Contains the www subdomain. |\n| `mystore.com` | ❌ | Does not contain a subdomain. To configure access via this address, you must set up a host with a subdomain such as `www.mystore.com` and then create a redirect. Read [Best practices for accessing the store without www](/en/docs/tutorials/best-practices-for-accessing-the-store-without-www) for more details. |\n| `store.mybrand.com` | ✔️ | Contains the store subdomain. |\n| `www.store.mybrand.com` | ✔️ | Contains two subdomains: `www` and `store`. |\n\n### Redirects\n\nTo ensure your store is accessible via different URLs, such as `www.mystore.com` and `mystore.com`, you should register a single main host and redirect the additional addresses to the main one. Learn more about redirects:\n\n* [Redirection from other addresses](/en/docs/tutorials/redirect-from-other-addresses)\n* [Best practices for accessing the store without www](/en/docs/tutorials/best-practices-for-accessing-the-store-without-www)\n\nWe recommend implementing a single host in your store.\n\n## Registering a new host\n\nTo register a new host, they must comply with the guidelines specified in the [Rules for main hosts](#rules-for-main-hosts) section. Follow the instructions below:\n\n1. In the top bar of the VTEX Admin, click your profile avatar, indicated by the initial letter of your email address.\n2. Click the **Account settings** button.\n3. Click **Account**.\n4. Click the **Store** tab.\n5. Click the actions button corresponding to the store where you want to register the host and click `Edit`.\n6. Enter the host in the **Hosts** field. For example: `www.mystore.com`.\n7. Click `Add`.\n8. Click `Save`.\n\nAfter completing these steps, you can [configure DNS pointing to VTEX](/en/tutorial/configurando-o-apontamento-de-dns-para-a-vtex--tutorials_4280).\n\n> ⚠️ [FastStore](https://www.faststore.dev/) stores also need to configure an address with the `secure` subdomain. Refer to the[ Configuring external DNS for a custom domain](https://www.faststore.dev/docs/go-live/2-configuring-external-dns) guide for more details.\n\n> ❗ If your operation has more than one VTEX account or [sub-account](/en/docs/tutorials/managing-a-multistore), don't change hosts from one account to another. This will cause failures in many aspects of your store.\n\n## Changing host\n\nThe VTEX platform is designed to support host changes without adverse impacts. If you need to change your store's host, follow the steps described in [Changing the store domain](/en/tutorial/change-the-store-domain--frequentlyAskedQuestions_626/)."}