最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin1浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论