Url重写angularjs

Url重写angularjs,angularjs,url,Angularjs,Url,因此,在我的angularjs项目中,我试图将我的url从 http:/localhost/(项目名称)/#/home?ref=(页面名称)至 http:/localhost/(项目名称)/主页/(页面名称) 我在iis中添加了url重写 现在,当我尝试运行我的项目时,我还添加了html5mode true和基本url 所有我的资源文件、应用程序文件指向 localhost/app/controllers/controllers.js而不是 localhost/(项目名称)/app/contr

因此,在我的angularjs项目中,我试图将我的url从

http:/localhost/(项目名称)/#/home?ref=(页面名称)至

http:/localhost/(项目名称)/主页/(页面名称)

我在iis中添加了url重写

现在,当我尝试运行我的项目时,我还添加了html5mode true和基本url 所有我的资源文件、应用程序文件指向

localhost/app/controllers/controllers.js而不是

localhost/(项目名称)/app/controllers/controllers.js

现在,如果我尝试在基本url中添加我的项目名称,它会像这样添加两次项目名称

localhost/(项目名称)/(项目名称)/app/controllers/controllers.js

有人能告诉我哪里错了吗?或者为什么这不起作用

多谢各位