How to use apache and htacess

Exactly as the title says. I’m trying to make a 404 page without using express

You aren’t able to use .htaccess. From your other posts it looks like you’re already using Express in your project, so add the following at the end of your list of defined routes:

app.get('*', function(req, res){
  res.send('404 - Not Found', 404);
});
1 Like

You must do it server-side. Why do you not want to use Express?