INCLUDED IN AGENTICSUITE

URL Rewrite Data for Headless Magento

Give your Astro storefront a usable map of Magento URLs and redirects. Resolve clean product, category, CMS and custom paths through a synced snapshot.

Part of the complete platform.

This capability is included in AgenticSuite. Get the Astro storefront and all headless and Luma-compatible modules listed on this website.

Explore AgenticSuite Discuss your Magento project
Your platform. Your control.Full source code and your business data.
Built to work togetherAstro storefront and comprehensive Magento modules.
Check your requirements with us
  • Product, category, CMS and custom rewrites
  • JSON snapshot and GraphQL feed
  • Reversible .htaccess redirect import
User Guide
MODULE DEMO · 0:41

URL Rewrite Data for Magento 2 - Headless URLs & Safe Redirect Importer

BUILT AROUND THE WAY YOU WORK

Keep familiar URLs in the new storefront.

Included in AgenticSuite. This is part of a headless Magento implementation; the storefront and deployment must be configured to use it.

01

Bring route information to the edge

Bundle Magento URL rewrites into a snapshot your frontend can use for clean route resolution and 301 / 302 redirects.

The .htaccess redirect importer — preview, import, and fully reversible
The .htaccess redirect importer — preview, import, and fully reversible
02

Plan redirects as part of migration

Use the supported .htaccess importer where appropriate and review route behaviour before launch. A reversible import supports deliberate migration work.

A CLEAR WORKFLOW

From setup to everyday use.

  1. 01

    Explore AgenticSuite and the live storefronts to see how the parts fit together.

  2. 02

    Discuss your current Magento setup, integrations and requirements with our team.

  3. 03

    Configure and test this capability as part of the agreed storefront project.

BEFORE YOU DECIDE

A few straight answers.

Need to check your own store?
Talk to our team

Do I need to buy this capability separately?+

AgenticSuite includes the Astro storefront and all headless and Luma-compatible modules listed on this website. Discuss the complete platform and your implementation scope with us.

Can you migrate my current store while it remains live?+

We can prepare and test a new storefront while the existing store keeps trading. Product, CMS and compatible module-data migration, final data synchronisation and cutover are planned for your specific project.

Does the licence include hosting and a bespoke build?+

Hosting, migration, training and custom development are agreed separately. We can discuss Cloudways for Magento and Cloudflare for the frontend; you can pay the providers directly or request a managed quotation.

Latest release: Version 1.0.3

URL Rewrite Data is a Magento 2 module that bundles every product, category, CMS and custom URL rewrite into a JSON snapshot and GraphQL feed, so a headless storefront resolves clean URLs and honours every 301 and 302 redirect at the edge. It also includes a safe, reversible .htaccess redirect importer.

Clean URLs and bullet-proof redirects for a headless Magento 2 store. Bundle every product, category, CMS and custom URL rewrite into one JSON snapshot and GraphQL feed - so an Astro front end resolves the right URL and the right 301/302 at the edge - plus a safe .htaccess redirect importer.

The URL layer headless Magento forgets

When you decouple Magento, its URL rewrites and redirects don't come along for free. URL Rewrite Data exposes them properly: one feed your storefront reads to resolve clean product, category and CMS URLs and honour every 301/302 redirect - at edge speed.

What it does

  • Complete rewrite snapshot - products, categories, CMS and custom rewrites in one JSON + GraphQL feed
  • Edge-ready redirects - your Astro storefront resolves 301/302s without round-tripping to Magento
  • Safe .htaccess importer - bulk-import legacy redirects; it only ever touches its own rows and is fully reversible
  • Security-hardened - unsafe targets (javascript:, protocol-relative, off-site) are neutralised to same-site paths

Included in the AgenticEcom Suite

Part of the complete platform - one of 40+ modules in the AgenticEcom Suite.

Frequently asked questions

Why does a headless storefront need this?

Your frontend has to know how to resolve clean URLs to products/categories/pages and honour every 301/302 redirect. The bundle hands it the whole rewrite map (with a version hash) in one call, so it can route and redirect at the edge without querying Magento per request.

Is the .htaccess import safe to run on a live store?

Yes. It previews as a dry run first, only ever writes/updates/deletes rows it owns (htaccess_custom), reports anything that would collide with a real Magento rewrite instead of touching it, and can be fully undone with one click.

What happens to a `javascript:` or `//evil.com` redirect target?

It's forced to a same-site path (e.g. /javascript:…), so it can't act as a script URL or an open-redirect to an external site. Genuine http(s):// targets you intend are kept as-is.

Which .htaccess lines actually get imported?

Only Redirect and RedirectMatch directives with a 301 or 302 status, and only when the path is a literal (regex patterns are flagged for review). Everything else — RewriteRule, IP/country blocks, gzip, comments — is ignored, so pasting a whole file is safe. Check release-specific PHP compatibility.

SEE THE WHOLE PLATFORM

The capability is one part. AgenticSuite brings it together.

Keep Magento as your commerce engine. Shape the customer experience in Astro Admin, with an integrated module collection behind it.

INSIDE AGENTICSUITE 00:57
LIVE PROOF

A complete B2B catalogue.

Explore SyncComms: approximately 1,000 products, guided finders, category filters and a quotation journey.

Explore SyncComms
90+

Mobile scores achieved.

See the dated mobile lab reports linked from our homepage, or test the live sites yourself. Results depend on the page and test conditions.

View the performance evidence
BUILT AROUND YOUR STORE

Make the move while you trade.

We can scope migrations, frontend rebuilds and new stores. Hosting, migration, training and custom development are agreed separately.

Discuss your project
YOUR NEXT STOREFRONT STARTS HERE

See what AgenticSuite could do for your business.

Explore the working sites, watch the overview, then talk to us about your catalogue and the store you want to build.