AngularJS html5mode support on GitHub pages

让人想犯罪 __ 提交于 2019-12-21 10:52:32

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!