How to change the replit 404 page to my custom one without paying?

Question:
How to change the replit 404 page to my custom one without paying?

Current behavior:
It shows the replit 404 page even if i added and tried to link to mine with html code

Desired behavior
I want it to show my own 404 page without paying or buying premium or changing nameservers

Repl link:
https://replit.com/@SohailSameer/Hypnotic

<head>
    <meta charset="UTF-8">
    <title>Terminal Search Engine</title>
    <link rel="stylesheet" type="text/css" href="style.css">
    <link rel="shortcut icon" href="https://icon-library.com/images/terminal-icon/terminal-icon-1.jpg" type="image/x-icon">
    <link rel="404" href="/lost">
  </head>

The easiest way to do this is to use a backend. Try out the flask template, and add this:

@app.errorhandler(404)
def not_found(e):
  return render_template('404.html'), 404
1 Like

To my knowledge, the only way is to use a backend, such as NodeJS or Flask (Python). NodeJS seems to load faster.

2 Likes