Next Commerce
Storefront

Redirects

Set up URL redirects with static paths or regular expressions

URL redirects let you send visitors and search engines from one URL to another. This is useful when you rename a page, move content to a new location, or need to point storefront paths to external resources. Manage redirects from Settings > Redirects.

Creating a Redirect

Choose Add Redirect to open the redirect form:

  • Redirect From — the source path on your storefront. This must be an absolute path without the domain name (e.g. /events/search/).
  • Redirect To — the destination. This can be an absolute path on your storefront (e.g. /new-events/) or a full URL including the domain (e.g. https://cdn.29next.store/media/example/file.pdf).

Regular Expressions

Check the Match using regular expressions option to use regex patterns in both the From and To fields. This lets you create flexible redirects that match multiple URLs with a single rule.

Regex redirects support capture groups, so you can reference matched segments in the destination path using $1, $2, etc.

Examples:

FromToEffect
/blog/(.*)/articles/$1/blog/my-post/articles/my-post
/products/old-(.*)/shop/$1/products/old-widget/shop/widget
/support/(.*)-manual.pdfhttps://cdn.29next.store/media/uploads/$1-manual-v2.pdfRedirect storefront document links to updated CDN files

Invalid regular expressions are silently ignored. Test your regex patterns before relying on them in production.

Common Use Cases

  • Page renames — redirect the old slug to the new one so bookmarks and search engine links continue to work
  • Domain migration — redirect legacy paths from a previous storefront to their new locations
  • Document hosting — point short storefront paths (e.g. /support/manual.pdf) to files hosted on your CDN assets
  • SEO preservation — when restructuring your site, redirects prevent broken links and preserve search engine ranking

Redirects are evaluated on every storefront request that does not match an existing page. Keep your redirect list focused on paths that are actually in use to avoid unnecessary processing.

On this page