问题
The question is: does GitHub pages support AngularJS html5mode
?
I've found a www resource which states that it's possible to do that with 404 fallback page. Well, it seems like an erroneous solution, since each call will return 404 error. This would not be seo-friendly for sure. html5mode
is supposed to need server-side support (to return the html entry point for each call).
So - is that possible to serve AngularJS html5mode on GitHub pages the right way?
回答1:
Check out this post Can one host an angular.js based static blog on Github?
I have been trying the same thing with little success. To use html5Mode, you are better off just hosting a simple MEAN app/stack of choice to do so.
来源:https://stackoverflow.com/questions/30287000/angularjs-html5mode-support-on-github-pages