{"section":"tutorials","requestedLocale":"en","requestedSlug":"managing-redirects-per-binding","locale":"en","slug":"managing-redirects-per-binding","path":"docs/en/tutorials/storefront/pages/managing-redirects-per-binding.md","branch":"main","content":"Redirects are a tool to forward both users and search engines to a more relevant or similar live URL different from those they initially requested.\n\nMulti-domain stores commonly ask for redirect management per [binding](/en/docs/tutorials/what-is-binding) due to the complexity presented by the several URLs available simultaneously. \n\nTaking this into consideration, VTEX enables you to manage your URL redirects according to the store bindings through the admin interface.\n\n> ⚠️ To create, edit, or remove redirects, the Admin user must have a role that has the [License Manager](/en/docs/tutorials/license-manager-resources) **CMS Settings** resource. You can grant the user a role with the resource by following the instructions in the [How to manage users](/en/docs/tutorials/managing-admin-users#editing-users) article or create a new role including the resource by following the instructions in the [Roles](/en/docs/tutorials/roles#creating-a-role) article.\n\nIn VTEX Admin:\n\n1. Access **Storefront > Pages**.\n2. Click on the `Redirects` tab.\n\n![en-redirecttab](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/storefront/pages/managing-redirects-per-binding_1.png)\n\n## Manually creating redirects\n\n1. Click on the `New Redirect` button.\n2. In the `Binding` field, use the dropdown menu to select the desired binding.\n3. Use the `From` and `To` fields to define the former URL and the new one to which users and search engines will be redirected.\n4. Check whether your redirect will be permanent or temporary — in case it is temporary, you can toggle the `This redirect has an end date` button to set an end date for it. \n5. Save your changes.\n\n![en-novoredirect](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/storefront/pages/managing-redirects-per-binding_2.png)\n\n## Manually deleting redirects\n\n1. Click on the desired redirect to be deleted.\n2. Click on the `Remove` button.\n3. Confirm your action. \n\n![en-remove-redirect](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/storefront/pages/managing-redirects-per-binding_3.png)\n\n> ⚠️ A bug may be found when trying to click on redirects with query strings. The VTEX product team is already aware of this unexpected behavior and working on the fix. If you cannot click on the desired redirect to delete it, opt to do it through the spreadsheet while the issue is not resolved.\n\n## Importing and exporting redirects\n\nTo manage your store's redirects in bulk, you can import and export a redirect spreadsheet. \n\n> ⚠️ The spreadsheet's inputs will be mandatorily created or deleted from the store's redirect list — it is not possible to create *and* delete redirects using the same spreadsheet. Before filling out and uploading yours to the admin, keep in mind your final goal with it.\n\n1. Click on the `Import` button and then on `Download Template`. Click on the `Export` button if you aim to download and modify the pre-saved redirect list. \n2. Open the spreadsheet template once the download is done and fill out the cells in the suitable columns according to the table below:\n\n  | Column     | Expected value    |\n| ---------- | ----------------- |\n| `from`     | Former URL no longer useful to users and search engines. |\n| `to`       | New URL to which users and search engines will be redirected to. |\n| `type`     | Whether the redirect will be permanent or temporary, i.e., have an end date. |\n| `binding`  | Binding to which the redirect will be applied. Caution: this column's cells must be filled out with the desired [binding IDs](https://developers.vtex.com/vtex-developer-docs/docs/checking-your-stores-binding-id). |\n| `endDate`  | End date for the redirect following the UTC format. Notice that this column's cells should only be filled out when the redirect type is set as temporary. |\n\n3. Save your spreadsheet once satisfied with the changes performed. \n4. Click on the `Import` button.\n5. Check the `Save` or the `Delete` button according to your scenario.\n\n  ![en-redirect-planilha](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/storefront/pages/managing-redirects-per-binding_4.png)\n\n  > ⚠️ By clicking on the `Save` button, you will create all the redirects listed in your spreadsheet, whereas clicking on the `Delete` button will remove all of them from your store's redirect database.\n\n6. Upload the spreadsheet from your local files.\n7. Click on the `Import file` button."}