Angularjs 1 Html5 Mode Refresh 404 Not Found How to Solve Issue

Node Angular.js 1 Html5 Mode 404 Not Found

  1. First Remove the:

    app.use('/', index);

    Or Equivalents directives.

  2. Then Edit Main app.js File and Append:

    app.use(function(req, res) {
      res.sendFile(path.join(__dirname, 'app_client', 'index.html'));

    In this Case the index.html File is Inside to the app_client Directory…

Leave a Reply

Your email address will not be published. Required fields are marked *