question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove the 404 page and use the Redirects feature instead

See original GitHub issue

Is 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
amitojsingh366commented, May 19, 2021

@overlisted Can I take this?

go ahead

0reactions
chalkedgoosecommented, May 19, 2021

and looking at it again i don’t see why we would want to turn a 404 into a 301

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found