Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Redirect 404 pages from a middleware - Nuxt
N
Nuxt
•
10mo ago
•
5 replies
bnthor
Redirect 404 pages from a middleware
Hi there
, i
'm currently working on my company
's new website with Nuxt 3
.17
.
This new site will be AB tested and some of the old site
's pages won
't be implemented from the start in the new version
.
I need to detect routes that are 404 in the new website and to redirect these to the equivalent page on the old website
.
.
.
For example a route that doesn
't exist like
new.mydomain.com/nope
new.mydomain.com/nope
should redirect to
www.mydomain.com/nope
www.mydomain.com/nope
I thought I could intercept these unimplemented routes from a middleware but I can
't find any documentation online
.
Is this even a good idea or are there some better practices
?
Thanks
!
Nuxt
Join
Nuxt Community Chat Server
31,686
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Redirect from nitro middleware
N
Nuxt / ❓・help
2y ago
404 middleware
N
Nuxt / ❓・help
5mo ago
Cloudflare pages 404?
N
Nuxt / ❓・help
14mo ago
Infinite redirect in middleware
N
Nuxt / ❓・help
2y ago