admin管理员组文章数量:1430849
I have developer angular app from WordPress rest API. I my WordPress baseURL and Angular app both are in same director (this is because WordPress and Angular URL are matched). But in this setup issue is, when I direct open URL i.e. /blog or /anyPAGE, then it send request to WordPress instead of angular(index.html) so is there a way to serve my app from index.html instead of index.php?
I have developer angular app from WordPress rest API. I my WordPress baseURL and Angular app both are in same director (this is because WordPress and Angular URL are matched). But in this setup issue is, when I direct open URL i.e. /blog or /anyPAGE, then it send request to WordPress instead of angular(index.html) so is there a way to serve my app from index.html instead of index.php?
Share Improve this question edited May 20, 2019 at 15:34 fuxia♦ 107k39 gold badges255 silver badges459 bronze badges asked May 20, 2019 at 11:58 Chirag S ModiChirag S Modi 1031 silver badge5 bronze badges1 Answer
Reset to default 0yes, why not name your app's page app.html it seems your hosting gives a priority to .php instead of .html This is controlled by Apache's DirectoryIndex setting.
本文标签: rest apiWordPress single page website redirect to indexhtml
版权声明:本文标题:rest api - WordPress single page website redirect to index.html 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745479471a2660114.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论