How to make the front end on the Vue and the backend on PHP?
In General, the question is simple, as clear as day, but I had a problem. Was domain and pediment. On the main domain were only the frontend js on the Vue with vue routing-router, and on the subdomain lay the api for php, respectively, also with a single entry point. Job script on the frontend, if you need more information using vue-resource requested from the subdomain. Now I need to combine them under one domain.
for most pages is to return a single file index.html that is stored in the root.
the folder api in the answer must come the results of the scripts.
xxx.xxx.xx/xxx returns the router to view.
xxx.xxx.xx/api/xxx/xxx - sends a get for the api (also done via htaccess, use the mvc architecture).