阅读背景:

重新加载页面或手动键入URL如“localhost / mysite.com / contact”在角度js服务器上给出错误的“未找到”(404错误)

来源:互联网 

Reloading the page or manually type URL like "localhost/mysite.com/contact" gives wrong "Not Found"(404 error) on the server. This is because MVC does not know about angular routing and by MVC pattern it will look for an MVC page for 'contact' which does not exist in MVC routing path. I think there is a solution by .haccess file by redirect all links to the index page, but it, not a good idea.Reloading the page or manually type URL like "l




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: