# QwikCity routing ## Folder based ### I want a route the matches: - /examples - /examples/ - /examples/something - /examples/something/else - /examples/something/else/thing ``` /src/routes/examples/[[...slug]]/index.tsx /src/routes/docs/whatever/index.mdx /src/routes/docs/whatever.md ``` - `/`: `/src/routes/index.tsx` - `/docs/[ID]`: `/src/routes/docs/[id]/index.tsx` - `/docs/[ID]/setting`: `/src/routes/docs/[id]/setting/index.tsx` - `/docs/[ID]/[...slug]`: `/src/routes/docs/[id]/[...slug]/index.tsx` - `/docs/[...ID]`: `/src/routes/docs/[...id]/index.tsx` - `/docs/setting`: `/src/routes/setting/index.tsx` - `/docs`: `/src/routes/docs/index.tsx` - `/docs/`: SERVER 301 to /docs ## File based - `/`: `/src/routes/index.tsx` - `/docs/[ID]`: `/src/routes/docs/[id].tsx` - `/docs/[ID]/setting`: `/src/routes/docs/[id]/setting/index.tsx` - `/docs/[ID]/[...slug]`: `/src/routes/docs/[id]/[...slug].tsx` - `/docs/[...ID]`: `/src/routes/docs/[...id]/index.tsx` - `/docs/setting`: `/src/routes/setting/index.tsx` - `/docs`: `/src/routes/docs/index.tsx` - `/docs/`: SERVER 301 to /docs ## Nextjs RFC ## SvelteKit ## Remix - app