1
我一直在为我的应用程序使用ui-router $ stateProvider状态管理器,但我没有使用$ routeProvider定义任何路由。现在angularjs:路由重定向
,我想我的网址重写这样:
http://mydomain/app/feature
到
http://mydomain/feature
的/ app文件夹是包含我angularjs应用程序的文件夹以及索引。 html页面。
我该怎么做?
我认为这是一个服务器端配置。 –
[见本页](http://docs.angularjs.org/guide/dev_guide.services.$location),特别是关于html5mode和链接重写的章节 – sh0ber