Hi everyone,
I’m working with Adobe Experience Manager Storefront Delivery Services and need to customize my URL structure for categories and products to be cleaner and more SEO-friendly. Right now, my URLs look like this:
Categories:
https://example.com/categories/maquillaje
Products:
https://example.com/products/toleriane-purifying-foaming-face-wash-for-oily-skin/ULT0011
The client’s requirement is to remove those prefixes so the URLs become:
Categories:
https://example.com/maquillaje
Products:
https://example.com/toleriane-purifying-foaming-face-wash-for-oily-skin/ULT0011
What I’ve tried:
- Edited fstab.yaml to add redirects from /categories/* and /products/* to the root, but accessing the new paths returns 404.
- Reviewed the StorefrontRouter and rewrite rules in the archetype, but I’m unsure which configuration files take precedence in Edge Delivery.
- Checked Adobe docs on URL rewrites, but didn’t find a clear example for removing both prefixes.
SEO considerations:
- URLs must be prefix-free for shorter, keyword-focused paths.
- Canonical tags need updating to point to the new URLs.
- Implement 301 redirects from old URLs to the new structure to preserve link equity.
Questions:
- Which AEM Storefront configuration (fstab, Fastly VCL, or StorefrontRouter) controls the removal of /categories/ and /products/ prefixes?
- What is the correct syntax or example in fstab.yaml or VCL to rewrite those paths at the root level?
- How should I update canonical tags in AEM Headless or within the Storefront templates once the prefixes are removed?
- Any best practices for handling 301 redirects in the Edge Delivery Service to ensure SEO continuity?
Thank you in advance for your guidance!