rest api - WordPress single page website redirect to index.html

I have developer angular app from WordPress rest API.I my WordPress baseURL and Angular app both are in same director (

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 badges
Add a comment  | 

1 Answer 1

Reset to default 0

yes, 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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745479471a4629498.html

相关推荐

  • rest api - WordPress single page website redirect to index.html

    I have developer angular app from WordPress rest API.I my WordPress baseURL and Angular app both are in same director (

    10小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信