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

本文标签: rest apiWordPress single page website redirect to indexhtml