Routing setting for 404 on NodeJS

Hey Everyone,

I am not able to redirect users to a 404 error page when they type in a wrong url.

I have seen that for php projects you can edit the .htaccess file, however I am not sure how to do that for a nodeJS project.

Anyone has any suggestions?

Community Page
Last updated: