问题描述
问题是: GitHub页面是否支持AngularJS html5mode
?
The question is: does GitHub pages support AngularJS html5mode
?
我发现了表示可以使用404回退页面执行此操作。好吧,这似乎是一个错误的解决方案,因为每次调用都会返回404错误。这肯定不是seo友好的。 html5mode
应该需要服务器端支持(为每次调用返回html入口点)。
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).
所以 - 可以在GitHub页面上提供AngularJS html5mode吗正确的方式?
So - is that possible to serve AngularJS html5mode on GitHub pages the right way?
推荐答案
看看这个发布
我一直在尝试同样的事情但收效甚微。要使用html5Mode,最好只托管一个简单的MEAN应用程序/堆栈来做到这一点。
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.
这篇关于GularHub页面上的AngularJS html5mode支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!