0

After adding

$locationProvider.html5Mode({
            enabled: true
            //requireBase: false
        });

I am getting 404(not found) on page refresh. What should I do to solve this?.

Anuradha Gunasekara
  • 6,553
  • 2
  • 27
  • 37
Saurav kumar
  • 407
  • 2
  • 5
  • 11
  • 2
    Possible duplicate [AngularJS: html5Mode(true) causing 404 error](https://stackoverflow.com/questions/21973802/angularjs-html5modetrue-causing-404-error) – Dean Aug 08 '18 at 06:28

1 Answers1

1

You have to set a base url in your index.html file

<base href="/folder name/" />

Gaurav Rathee
  • 477
  • 3
  • 12