GularHub页面上的AngularJS html5mode支持 [英] AngularJS html5mode support on GitHub pages

查看:151
本文介绍了GularHub页面上的AngularJS html5mode支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题是: GitHub页面是否支持AngularJS html5mode

The question is: does GitHub pages support AngularJS html5mode?

我发现了 www资源 表示可以使用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?

推荐答案

看看这个发布可以托管一个基于angular.js的静态Github上的博客?

我一直在尝试同样的事情但收效甚微。要使用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支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆