You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
why called it 404 because it's should check after all current defined route, before throw 404 must run.
🆕 The solution you'd like
instead of define rewrite in nginx or even nuxt it's would be nice to to control over 404 and define several strategiy if one of them solved then nuxt must be work and application also
for example:
consider new route is /my-new-content/:id
[{match: /content\/(\d+)/,(m)=>{// redirect into `/my-new-content/:id`)}},// for redirect{match: /content\/(\d+)/,(m)=>{// get data from `/my-new-content/:id` and serve it but with new cannonical// it's save crawler budget and eventually new url will be applied on search engines// https://developers.google.com/search/blog/2017/01/what-crawl-budget-means-for-googlebot}},// for proxy{fetch: asyncfunction(req)=>{// check old url mapping in backend database for example in slug, if found then use// if found redicert or proxy // on this step also server can log 404 request and manage it if want to redirect or something}),// for backend process// now 404 could be happened]
🔍 Alternatives you've considered
No response
ℹ️ Additional info
No response
The text was updated successfully, but these errors were encountered:
🆒 Your use case
For website want to migrate into Nuxt old website could have different routing strategy. like wordpress:
http://example.com/?p=234
http://example.com/content/1234
http://example.com/fully-slug-without-id-or-something
... and much much
why called it 404 because it's should check after all current defined route, before throw 404 must run.
🆕 The solution you'd like
instead of define rewrite in nginx or even nuxt it's would be nice to to control over 404 and define several strategiy if one of them solved then nuxt must be work and application also
for example:
consider new route is
/my-new-content/:id
🔍 Alternatives you've considered
No response
ℹ️ Additional info
No response
The text was updated successfully, but these errors were encountered: