Documentation
Feedback
Guides
VTEX IO Apps

VTEX IO Apps
VTEX IO Apps
Store Framework
Navigation and search
Rewriter
Official extension
Version: 1.70.0
Latest version: 1.70.0

Source code

Rewriter is the app responsible for managing VTEX IO routes related to the storefront. Through the use of the app's GraphQL API, it's possible to read, create and delete routes in a store.

The Rewriter app offers many features that can be configured on its Admin settings page, which are described in the next section. Some of these functionalities are:

  • Redirecting routes with specific configurations (ending with /, use of uppercase, etc.).
  • Configuring behavior when using hreflang tags, which can be useful for multilanguage stores.

Settings

Follow the steps below to access the Rewriter settings page in your store:

  1. In the VTEX Admin, go to Apps > Extensions Hub > App Management.
  2. Search for Rewriter.
  3. In the Rewriter app's box, click ⚙ Settings.
  4. Edit the fields as needed.
  5. Click Save.

The table below describes the available settings of the Rewriter app:

NameField typeDescription
Enable 404 for paths with one segmentbooleanEnables 404 for paths with one segment. Make sure your search bar adds map=ft to your URL. For more details, see Enabling 404 pages for invalid single-segment paths.
Routes versionnumberThe version routes will be saved in. If this is changed, all routes saved in VBase will be invalidated, meaning all translated routes will be missing and the user will have to run the process to generate them manually.
Blocks default routes in other bindingsbooleanBlocks the default binding's routes in other bindings.
Enforce URLs in lowercasebooleanForces any URL containing uppercase characters to return a 301 redirect to the same URL in lowercase.

Without this setting, search engines treat /Category and /category as distinct URLs, creating duplicate content that splits crawl budget and link equity. Enabling this consolidates signals into a single canonical URL. Note: This only affects requests to your VTEX storefront domain, not outgoing calls to third-party domains.
Enforce URLs without ending slashbooleanForces any URL ending with / to return a 301 redirect to the same URL without the trailing slash (for example, /category//category).

This setting eliminates duplication between /page and /page/, consolidating ranking signals into a single canonical URL, simplifies internal linking rules, and keeps sitemaps and redirects consistent.
Remove repeated hreflang tagsbooleanRemoves the repeated hreflang tags, prioritizing showing hreflang tags with the current host.
Enable full locale in the hreflangbooleanIncludes the full locale in the hreflang.
Remove locales with myvtexbooleanRemoves all hreflang tags on URLs that include myvtex.
Custom hreflangarrayAssociates your custom hreflang tags with the canonical address desired.
↳ Canonical addressstringThe canonical address of the hreflang tag to be modified.
↳ Custom localestringThe custom locale that will be used in the hreflang tag for the selected canonical address.
See also
VTEX App Store
VTEX IO Apps
Multi Binding
VTEX IO Apps
Route Resolution
VTEX IO Apps
Model Guide
VTEX IO Apps
Cache Performance
VTEX IO Apps
Middleware
VTEX IO Apps
Data Model
VTEX IO Apps
Storage
VTEX IO Apps
Rewriter Graphql API
VTEX IO Apps
Observability
VTEX IO Apps
Template
VTEX IO Apps
Error Handling
VTEX IO Apps
Troubleshooting
VTEX IO Apps
C4 Architecture
VTEX IO Apps
Glossary
VTEX IO Apps
Graphql API
VTEX IO Apps
Was this helpful?