> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt ## Resource: Sample Flows ## Article: Sample Flows ## Article Link: https://dev.wix.com/docs/api-reference/business-management/marketing/seo/seo-user-config/sample-flows.md ## Article Content: # SEO User Config API: Sample Flows This article presents possible use cases and corresponding sample flows that you can support. It provides a useful starting point as you plan your implementation. ## Enable URL flattening to improve page discoverability If you want all pages to have clean, flat URLs regardless of their position in the page hierarchy, you can read the current SEO configuration and enable URL flattening. To enable URL flattening: 1. Call [Get SEO User Config](https://dev.wix.com/docs/api-reference/business-management/marketing/seo/seo-user-config/get-seo-user-config.md) to retrieve the current configuration, including the latest `revision`. 2. Call [Update SEO User Config](https://dev.wix.com/docs/api-reference/business-management/marketing/seo/seo-user-config/update-seo-user-config.md) with: - `seoUserConfig.revision` set to the value returned in step 1. - `seoUserConfig.shouldFlattenUrlHierarchy` set to `true`. ## Switch to SEO-friendly 404 for non-existent pages If a site is returning `200` for non-existent pages and you want to switch to the SEO-recommended `404` behavior, you can update the SEO configuration to disable partial route matching. To switch to SEO-friendly 404 responses: 1. Call [Get SEO User Config](https://dev.wix.com/docs/api-reference/business-management/marketing/seo/seo-user-config/get-seo-user-config.md) to retrieve the current configuration, including the latest `revision`. 2. Call [Update SEO User Config](https://dev.wix.com/docs/api-reference/business-management/marketing/seo/seo-user-config/update-seo-user-config.md) with: - `seoUserConfig.revision` set to the value returned in step 1. - `seoUserConfig.shouldUsePartialRouteMatch` set to `false`.