How to use apache and htacess


#1

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


#2

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);
});

#3

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