Disable angularJS routing for a specific url

こ雲淡風輕ζ 提交于 2019-12-11 03:20:02

问题


I have a static sitemap.xml file which sits in the root of my server and needs to be served as is. Unfortunately, when I use the url www.mydomain.com/sitemap.xml it is rewritten by angularJS routing engine to http://www.mydomain.com/sitemap.xml#!/

Is there any way to disable angularJS routing only for a specific url? I can't modify webserver configuration so it must be done from angularJS conf.

Thanks

来源:https://stackoverflow.com/questions/23912719/disable-angularjs-routing-for-a-specific-url

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!