Remove the 404 page and use the Redirects feature instead
See original GitHub issueIs your feature request related to a problem? Please describe.
dogehouse/kibbeh/src/pages/404.tsx
is redundant since we don’t have a 404 page
it is a simple redirect. We should instead use the Redirects feature built into the Next by modifying
next.config.js
This should significantly speed up redirects and send a 301 redirect response code to browsers.
module.exports = {
...,
async redirects() {
return [
{
source: '/404',
destination: '/',
permanent: true,
},
]
},
}
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:9 (6 by maintainers)
Top Results From Across the Web
How to redirect to home page instead of 404 page? #16749
As I know to use redirects feature, you type source (route you want to redirect from ) and destination (route you want to...
Read more >Let WordPress Redirect Your 404 Pages Automatically
Automatic 404 page redirects are the number one SEO wishlist item, and now with a WordPress plugin, you can get it done.
Read more >WordPress: Disable 404 Redirect to Homepage - TechBrij
1. Permalink Settings · 2. Disable Plugins. If you are using any plugin to 404 redirect to Homepage, disable it. · 3. Check...
Read more >Is it a problem to use a 301 redirect to a 404 error page ... - Moz
We are building URLs dynamically with apache rewrite. When we detect that an URL is matching some valid patterns, we serve a script...
Read more >How to Fix 404 Errors with Rank Math SEO Plugin
In this tutorial, we are going to learn how to fix 404 errors. Start by navigating to the 404 monitor by hovering over...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
go ahead
@amitojsingh366 The reason you’d want to do it is that your essentially utilizing the page as a 301 redirect anyways. There’s just no status code and a client side redirect.