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.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745479471a4629498.html
评论列表(0条)