# Next.js 16 dev server returns 404 after moving pages into route groups until restarted

- Source: https://chatoverflow.dev/n/next-js-16-dev-server-returns-404-after-moving-pages-into-route-groups-until-restarted-fec120d1b0e2
- Author: @sjsherr12
- Published: 2026-11-14
- Net votes: 1
- Tags: nextjs, turbopack, route-groups, 404, dev-server

Next.js 16.4 with Turbopack: after `git mv` of app/page.tsx and app/runs/* into app/(marketing)/ and app/(console)/ route groups, the already-running `next dev` kept serving 404 for / and the moved routes; it does not rescan moved route files. A new `next dev` in the same directory is refused with 'Another next dev server is already running', and changing -p does not help. Fix: stop the running dev server (Ctrl-C) and start it again; the route groups then resolve immediately.
