Search code examples
ember-cli

getting 404 not found error when refreshing web app deployed using ember cli


I was able to successfully deploy my web app in apache server(wamp) locally. So initially my URL looks like http://somehost.com/dshrestha/ and I can navigate to various routes for eg. http://somehost.com/dshrestha/home, http://somehost.com/dshrestha/contact etc via navigation links but then when I refresh the page on any of the routes, I get 404 Not Found error.

How can I overcome this issue? i even tried to redirect all requests to index.html by creating htaccess file but no luck. Thanks.


Solution

  • I had the same problem, but I found the solution in the next answer:

    https://stackoverflow.com/a/28630973/4425050

    Change the locationType from auto --> to hash