c# - Issue in defining parent path -
i developing application in website using .net framework 4.5 , angularjs. facing issue regarding parent path after publishing project. project structure is-
d:\abc\ ->app -appdata -css -faltify -img -js -controllers logincontroller.js -services loginservice.js ->login.html
where app folder , login.html on same level. giving path of logincontroller
, loginservice
in login.html
as
<script src="../app/js/services/loginservice.js"></script> <script src="../app/js/controllers/logincontroller.js"></script>
and same other directorie's files. publish on iis server , made login.html default page when browse , can display login.html page. when run application locally,it runs fine. after publishing on iis when brows using url using http://localhost:8090/1
(here 1 id of record), gives error as
http error 404.0 - not found resource looking has been removed, had name changed, or temporarily unavailable. requested url http://localhost:8090/1 physical path c:\websites\abc\ui\1
when give url http://localhost:8090/#/1
works fine.but dont want give #
in url. giving wrong path in login.html? there solution this? want access login.html using http://localhost:8090/1
. please help.
what might looking html5mode on $locationprovider.it can come pretty urls. have @ https://scotch.io/quick-tips/pretty-urls-in-angularjs-removing-the-hashtag
hope helps
Comments
Post a Comment